When you work with a PHP project, you want to upload a file to server time to time. Just imagine if you have the FTP in your code editor That’s what I am talking about. Follow the below instructions to add a FTP/SFTP in visual studio code editor.
Search for the suitable extension in the extension market.
Click on the square icon on the left side to go to Extension manager. Once you are there, just search for ftp in the text. There will be so many options popping up. Select an extension with name ftp-simple, my favorite and very simple to use and configure. Install it by clicking on the install button.
Press F1 key in your keyboard which opens up a text box for options. Start typing something like config, then select the option FTP connection setting from the drop down.
Note: If this is not appearing, just press the reload button in the extension window, or quit and open the visual code editor.
Next, Screen will be like below, add your ftp connection parameters in the JSON array. You may have multiple connections in the same JOSN area.
Ctrl+S to save the new changes.
Next, hit F1 key again to appear the options search box , and type a text remote in there. It will be showing Remote directory open to workspace , select that option.
When selecting config option, the connection name (you’ve saved in the json config) will appear and the path too in next screens.
That’s it, you are ready to use the remote files in the Visual Studio code editor. You can see the remote files in the left pane of the editor.