vscode - zhongjiajie/zhongjiajie.github.com GitHub Wiki
- How to execute Python code from within Visual Studio Code
- 自动文件编码:
files.autoGuessEncoding=true这里 - 显示全部符号包括空格:
"editor.renderWhitespace": "all", - 设置vscode使用的python环境这里,vscode默认使用
pyhton3 -m venv env
- 查看全部快捷键
ctrl + shift + p输入shortcuts
- 分割垂直分割窗口:
ctrl + \- 切换不同的editor
- 分割窗口切换水平\垂直分割:
alter + shift + 1或者鼠标view->toggle editor - 比较文件
-
ctrl + shift + p输入file compare active file with (.../clipboard/saved)
-
- 选中内容
command + D查看文件中其他的重复值(变量) - 切换文件的Change Language Mode:
command + k然后单击m,相关连接What is the shortcut for 'change language mode' in Visual Studio
- 格式化json:
command + ctrl + m - 最小化json:
command + ctrl + shift + m
- 排列Python的import命令投入额:
ctrl + shift + p输入psim
常用插件推荐
- beautify
- c/c++
- docker
- gitlens
- json tools
- markdown all in one
- markdownlint
- One Dark Pro
- partial diff
- python
- trailing spaces
- vscode-icons
- xml tools
- yaml