VSCode
Last updated
Was this helpful?
Last updated
Was this helpful?
指令窗口:Ctrl+Shift+P
最近文件:Ctrl+P
选择所有与当前所在单词相同的单词:Ctrl+F2
选择所有与当前所选内容相同的字符串:Ctrl+Shift+L
快捷键列表:
Color Theme
Dark(Visual Studio)
Solarized Dark
One Dark Pro
File Icon Theme
VSCode Great Icons
Material Icon Theme
vscode-icons
Remote - WSL
Vim
Language
Python
C/C++
Git
GitLens
Git History
Github
Visual
Drawio Integration
Debug Visualizer
HTML Preview
hexdump for VSCode
Markdown
Markdown All in One
Markdown PDF
Markdown Preview Github Styling
markdownlint
Debugger for Chrome
Apps
Zhihu On VSCode
LeetCode
在settings.json
文件中添加editor.rulers
,数组每一个数对应一条线。
使用Shift Alt F
可以自动格式化代码,针对python
代码,会提示需要安装autopep8
,可以通过VSCode
的弹框信息安装,也可以手动安装
每次执行python代码时,总是会弹出新的terminal
,此时可以通过配置launch.json
解决这个问题
references:
PS:我的多台PC的多个系统都装有VSCode和python插件,但并不是所有系统都有这个问题。
PS again: 后经观察,发现在使用git bash
时才有这个问题,如果使用CMD
作为默认终端则没有这个问题。
安装C/C++
插件
debug C 代码,自动提示配置launch.json
, tasks.json
在浏览器访问VPS上部署的VSCode server, 简直不要太棒!
更改配置文件中的密码、端口(默认8080),如果是用vps,需要将配置文件中的127.0.0.1
替换为0.0.0.0
,否则打开端口映射也没法访问。