Day 106/200 VS code Remote-SSH 插
2021-02-20 本文已影响0人
赵国星
写在前面的话
以前一直在Linux服务器上,改文件配置,发现一个本地可以编辑服务器文件的神器,Remote-SSH插件,分享给大家~
环境
1. 本地是Mac 11.0.1
2. 服务器是 Ubuntu 18
3. 软件是Vs code
步骤
1. 安装Remote-SSH插件

2、按F1 或左下角的图标

3、输入命令 ssh root@ip/域名 -A

4、选择第一个配置文件

结果如图

5、链接后,输入密码就连上了服务器
6、选择file,打开想要编辑的目录
再打开需要编辑的文件编辑,保存即可~
确认过眼神,超级好用,爱了~~~
参考链接
https://zhuanlan.zhihu.com/p/64849549