Loading

vscode各种教程

  1. vscode-实时同步代码到远程服务器
    补充:VSCode配置多个sftp
    自己的配置模板(多个sftp):
{
    "name": "myserver",
    "context": "/local path/",
    "ignore": [            
        "**/.vscode/**",
        "**/.git/**",
        "**/.DS_Store",
        "res/"
    ],
    "remotePath": "/remote path/", 
    "syncMode": "update",  
    "uploadOnSave": true, 
    "profiles": {
        "server1": {
            "host": "xx",
            "port": 22,
            "username": "xx",
            "password": "xx"
        },
        "server2": {
            "host": "xx",
            "port":33,
            "username": "xx",
            "privateKeyPath": "/xx/.ssh/id_rsa"
        }
    }
}
  • ctrl+shift+P选择set profile切换不同的服务器
  • ssh key登陆用server2的方式
  1. 在VSCode中调试带参数的Python程序
    第二种方法在执行:python -m debugpy --listen xxxx --wait-for-client xxx.py -arg1 ARG1 -arg2 ARG2之后记得要按一下F5才能进入Debug模式

  2. VSCODE 安装Copilot 插件实现AI辅助编程

  • 学生验证之后免费使用
posted @ 2022-07-26 16:26  摇头晃脑学知识  阅读(31)  评论(0编辑  收藏  举报