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

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM