Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The usage of vscode ftp

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article is to share with you about the use of vscode ftp. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

How to use vscode ftp

The ftp-sync plug-in can synchronize client-side and server-side code.

Installation method:

Method 1. Ctrl+Shift+P enter ext install [plug-in keyword / name]

Method 2. Ctrl+Shift+P (or F1) enter Extensions, select Install Extension and enter plug-in name / keyword

If you install a plug-in that is not in the plug-in store, you can place it in the .vscode / extensions folder under the user's directory. Then restart VS Code to take effect.

Configure ftp-sync

Then, after the ftp-sync plug-in, enter * Ftp-sync: Init * in Ctrl+Shift+P (or F1) to configure the server account path and other information.

{"remotePath": "/ var/data/", "host": "192.168.0.78", "username": "your-username", "password": "your-password", "port": 22, "protocol": "sftp", "uploadOnSave": true, "passive": false, "debug": false, "privateKeyPath": null, "ignore": ["\ .vscode" "\ .git", "\ .idea"]}

The configuration information is in the. /. Vscode/ftp-sync.json file in the current directory.

Synchronize server and client files with the commands Ftp-sync: Sync Local to Remote and Ftp-sync: Sync Remote to Local.

Submit the changes by commanding commit.

Thank you for reading! This is the end of this article on "the usage of vscode ftp". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report