IDE & Framework之VS Code使用记录

高亮颜色说明:突出重点
个人觉得,:待核准个人观点是否有误
高亮颜色超链接

VS Code for C++

VS Code + MinGW: Buildcpp, tasks.json

VSCode_MinGW_Buildcpp_tasks_json001_20200310.jpg

VS Code + MinGW: Debugcpp, launch.json

VSCode_MinGW_Debugcpp_launch_json002_20200310.jpg
VSCode_MinGW_Debugcpp_launch_json003_20200310.jpg
VSCode_MinGW_Debugcpp004_20200310.jpg
VSCode_MinGW_Debugcpp005_20200310.jpg

VS Code + MinGW: c_cpp_properties.json

VSCode_MinGW_c_cpp_properties_json006_20200310.jpg
VSCode_MinGW_c_cpp_properties_json007_20200310.jpg

经由ssh连接远程服务器

to set up an SSH server on Linux

With SSH enabled on your Linux device, you can send data via the command line from one computer to another. For this to work, however, you will need to set up an SSH server on your Linux machine.

  • Start by opening a terminal and updating and upgrading the OS.
    sudo apt update
    sudo apt upgrade
    
  • Once complete, install the SSH server. The OpenSSH server is a good option.
    sudo apt install openssh-server
    
  • Wait while it installs. To check at any time if the OpenSSH server is running, use
    sudo service ssh status
    

VS Code 使用Remote-SSH远程开发

VS Code首次连接远程服务器时提示"An SSH installation couldn’t be found"

问题描述
VS Code首次连接远程服务器时提示"An SSH installation couldn’t be found"
原因分析:

解决方案:
Local: A supported OpenSSH compatible SSH client must also be installed. 对于Earlier Windows (例如Win8.1), after installing Git for Windows, VS Code will look for the ssh command in the PATH. Failing that, on Windows it will attempt to find ssh.exe in the default Git for Windows install path. You can also specifically tell VS Code where to find the SSH client by adding the remote.SSH.path property to settings.json, 具体地, 打开"Remote - SSH"的扩展设置, 指定"Remote.SSH: path"为"D:/Program Files/Git/usr/bin/ssh.exe"即可.

VS Code 使用

VS Code 添加命令行参数进行调试

VS Code 比较文件之间的差异

问题记录

VS Code调试Python程序时报错’The PyDev.Debugger requires Python 3.6 onwards to be run. If you need to use an older Python version, use an older version of the debugger.’

问题描述and原因分析
VS Code调试Python程序时报错’The PyDev.Debugger requires Python 3.6 onwards to be run. If you need to use an older Python version, use an older version of the debugger.’

解决方案
VS Code的扩展Python版本不合适,回退到以前的版本试试。

VS Code中代码提示"Format string literals (f-strings) require Python 3.6 or newer Pylance"

问题描述and原因分析
VS Code中代码提示"Format string literals (f-strings) require Python 3.6 or newer Pylance"

解决方案
待解决。

二级标题

待补充

待补充


版权声明:本文为NeXT_Voyager原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。