VSCode插件集+相关配置

vscode 插件:

themes and icons:
Material Icons
Material Icon Theme
Community Material Theme
Material Theme
Visual Studio Blue Theme
Visual Studio Light1 theme
GitHub Theme
Atom One Dark Theme
Eva Theme
C/C++ themes
Linux Themes for VS Code
One Dark Pro
Silver Gray --银灰色主题,颜色有点暗
Real Visual Studio --跟原vs一样主题


Auto Import
Better C++ Syntax
Bracket Pair Colorizer 2 -> Rainbow Brackets 2
C/C++
C/C++ Extension Pack
C#
C++ Intellisense
C++ TestMate
Chinese Simplified
CMake
CMake Tools
Debugger for firefox
Debugger for java
Doxygen Document
Eclipse keymap
File Utils
GBKtoUTF8
Github Pull Requests
Gitlens
GoogleTest Adapter
Import Cost
indent-rainbow
Java Extension Pack
Jupyter
Language Support for java
LeetCode
npm Intellisense
Prettier - Code for
Pylance
Python
Test Adapter Converter
Test Explorer UI
Trailing Spaces
Visual Studio Codespaces -> GitHub Codespaces
vscode-icons
XML Tools
Visual Studio IntelliCode
Auto Close Tag
Debug for Chrome
Debug for Firefox
ESLint
favorites
Git History
HTML CSS Support
JavaScript (ES6) code snippets
Kotlin Language
npm
path Intellisense
ToDo Highlight v2
Node.js extension pack
Search node_modules
Markdown Preview Enhanced
paste image
beautify
Rainbow Brackets 2 ---比Bracket Pair Colorizer 2加载快,给出的括号配对颜色也不晃眼
C/C++ Clang Command Adapter
C/C++ Compile Run
Catch2 and Google Test Explorer
Code Runner
Git Project Manager
Include Autocomplete
IntelliSense for CSS class names in HTML
Java Test Runner
JS-CSS-HTML Formatter
markdownlint
MSYS2/Cygwin/MinGW/Clang support
Native Debug
PowerShell
Project Manager for Java
TSLint


PHP IntelliSense
sftp
WakaTime

Remote - Containers
Remote - SSH
Remote - SSH: Editing Configuration Files
Remote - WSL
Live Share
Live Share Audio

--------------------------------------

vscode java JDK配置 (配置后会支持跳转到定义、调用等)

#worked

"java.home": "D:\Program Files\Java\jdk-16",
"java.configuration.runtimes": [
    {
        "name": "JavaSE-1.8",
        "path": "D:\Program Files\Java\jdk8",
    },
    {
        "name": "JavaSE-11",
        "path": "/path/to/jdk-11",
    },
    {
        "name": "JavaSE-16",
        "path": "D:\Program Files\Java\jdk-16",
        "default": true
    }
]

VSCode快捷键:

vscode 隐藏 / 显示侧边栏
隐藏 / 显示侧边栏:Ctrl + b
隐藏 / 显示终端:ctrl + `

ctrl+alt+o -打开文件

ctrl+alt+d --打开文件夹

删除行 --对齐到 eclipse ~ ctr + d

移动行 alt + ↑/↓ ~ 默认有,不需要设置

向上复制行 ctrl/shift + alt + ↑ --shift为默认

向下复制行 ctrl/shift + alt + ↓

显示/隐藏活动栏 ctrl +alt + B  --- 自定义

关键字搜索  -- ctrl + F  

Find next 下一个搜索关键字 F3

Find previous 上一个搜索关键字 ctrl + F3  --- 自定义 or shift + F3 ( 默认的)

VS Code常用快捷键总结
https://www.cnblogs.com/schut/p/10461840.html

 VSCode 单行注释,多行注释:

1.选中你要加注释的区域,用ctrl+shift+C 或者ctrl+/ 会加上//注释
2.先把你要注释的东西选中,用shit+ctrl+/ 会加上/* */注释

VSCode 垂直标尺设置:

分割线 --长度保护线 editor.rulers

"editor.rulers": [ 80 ],

垂直标尺 editor.rulers: [120] 80 100 120
editor.renderIndentGuides 竖线就是缩进参考线

----------------------------------

CMake Tools kit env配置:

    "cmake.mingwSearchDirs": [
        "${env:SystemDrive}/MinGW",
        "D:\mingw64"
    ],
    "cmake.additionalKits": [
        "D:\mingw64\bin\x86_64-w64-mingw32-gcc-8.1.0.exe",
        "D:\mingw64\bin\g++.exe",
        "D:\mingw64\bin\addr2line.exe",
        "D:\mingw64\bin\c++.exe",
        "D:\mingw64\bin\gcc-ar.exe",
        "D:\mingw64\bin\gcc-nm.exe",
        "D:\mingw64\bin\gcc-ranlib.exe",
        "D:\mingw64\bin\x86_64-w64-mingw32-gfortran.exe"
    ]

银灰色主题:
Firefox Light
Tokyo Night Light
silve gray
GitHub Light
Brackets Light Pro
Github Light Theme - Gray
Atom one light/dark 还不错

----------

上一个/下一个编辑位置:

F3 查找下一个
ctr + f3 查找上一个

Focus Previous Pane 聚焦到上一窗格 alt + <-
Focus Next Pane 聚焦到下一窗格 alt + ->
后退
前进
快捷键中搜索 go back | go forward

 

原文地址:https://www.cnblogs.com/bluestorm/p/15018091.html