Help with Visual Studio Code Please

Just switched to a new computer and WebMatrix is not available any longer so I am playing around with this product.  How do I get my pages and changes to the server?

Thank you!
Bob SchneiderCo-OwnerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

zephyr_hex (Megan)DeveloperCommented:
Are you asking how to publish your code from Visual Studio?  What type of project is it (web app, console app, etc) ?

Many projects can be published using the publish wizard (right click on the project and select Publish).  Others may use the website copy tool (available from the top menu Website option).  And some projects can be deployed by copying files from the bin sub directory to the server.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Brandon LyonSenior Frontend DeveloperCommented:
That depends on the server. Is the project SFTP? Git? AWS? Firebase? Azure?
Bob SchneiderCo-OwnerAuthor Commented:
The server is an Windows IIS
Learn Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Brandon LyonSenior Frontend DeveloperCommented:
Local or remote? How does your code get to it? What kind of code is it?
Bob SchneiderCo-OwnerAuthor Commented:
Remote.  I usually uploaded to the server via WebMatrix.  Trying to decide how to do that with Visual Studio Code program.
Bob SchneiderCo-OwnerAuthor Commented:
I see that I need an extension like simple-ftp.  I have installed that but I am having a hard time "using it".  It asks for an ftp server but I don't see where to put that information into vs code or where to configure simple-ftp so that the ftp server I want is configured.
Brandon LyonSenior Frontend DeveloperCommented:
I found a plugin named FTP-simple but not simple-FTP. If this is the plugin you're using, the configuration instructions appear to be listed as:

Startup Settings
Press 'F1'
Enter 'ftp-simple'
Pick 'CONFIG'
Enter ftp connection information and save
Config setting example
See the easy-ftp details.

name - string	- Display name.
host - string	- server domain or ip.
port - number	- (option) port (Default: : 21)
type - string	- (option) ftp type. 'ftp' or 'sftp' (Default: : 'ftp')
username - string	- username for authentication.
password - string	- (option) password for authentication.
privateKey - string	- (option) sftp only. String that contains a private key for either key-based or hostbased user authentication (OpenSSH format) Default: none
passphrase - string	- (option) Use sftp 'privateKey' only. For an encrypted private key, this is the passphrase used to decrypt it. Default: none
agent - string - (option) sftp only. Path to SSH-Agent socket or use 'pageant' on Windows for Putty’s Pageant. Important: Set password to something, it will not be used but otherwise you will be asked for one! Default: none
path - string	- (option) remote root path. Default: '/'
autosave - boolean	- (option) To determine whether the automatically uploaded when you open a file directly and modify and save. Default: true
backup - string	- (option) The local path you want to back up before file saving on the server.
confirm - boolean	- (option) Only save option. When you save the file, ask if you want to overwrite the file if it already exists.. Default: true
project - object	- (option) Only save option. Pre-specify local workspace path and server root path to save directly without selecting a path. Overwrite unconditionally.
ignore - array	- (option) Only 'Remote directory open to workspace' option. Path to be ignore. Use glog pattern. (Caution : server path (ex:/home) + ignore pattern (ex:/**/node_modules) => /home/**/node_modules)
Example

[
	{
		"name": "my server1",
		"host": "127.0.0.1",
		"port": 21,
		"type": "ftp",
		"username": "id",
		"password": "pw",
		"path" : "/"
	},
	{
		"name": "my server2",
		"host": "127.0.0.1",
		"port": 22,
		"type": "sftp",
		"username": "id",
		"password": "pw",
		"path" : "/",
		"autosave" : false
	},
	{
		"name": "my server3",
		"host": "127.0.0.1",
		"port": 21,
		"type": "sftp",
		"username": "id",
		"password": "pw",
		"path" : "/home",
		"confirm" : false,
		"backup" : "C:/backup",
		"project" :  {
			"c:/projects/project1" : "/home/user/project",
			"c:/projects/project2" : {"path":"/home/user/project2", "save":true}  //When the "save" value is "true", save immediately without confirm
		},
		"ignore" : ["/**/node_modules", "/**/*.class"]
	},
	{
		"name": "my server4",
		"host": "127.0.0.1",
		"port": 22,
		"type": "sftp",
		"username": "id",
		"password": "x",
		"agent": "/run/user/1111/keyring/ssh",
		"path": "/",
		"autosave": true,
		"confirm": false
	},
	....
]

Open in new window

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.