VSCodeSetup-x64-1.68.1.exe (windows)
Download an appropriate version of VSCode and setup for yourself.
PS: replace official download server az764295.vo.msecnd.net
(or anything else appeared in your download link) to vscode.cdn.azure.cn
to speed up your download procedure. [optional]
Chinese (Simplified) (简体中文) Language Pack for Visual Studio Code
brief Language pack extension for Chinese (Simplified)Error Lens
brief Improve highlighting of errors, warnings and other language diagnostics.Markdown All in One
brief All you need to write Markdown (keyboard shortcuts, table of contents, auto preview)clangd
brief C/C++ completion, navigation and insights based on clangd (LSP project of LLVM)CMake Tools
brief CMake language with extension supportBookmarks
brief Mark lines and jump to themPylance
brief A performant, feature-rich language server for Python in VS CodeProject Manager
brief Easily switch between projectsPlantUML
brief Rich PlantUML supportTodo Tree
brief Show TODO, FIXME, etc. comment tags in a tree view
- Install
Git
for yourself. - Add
Git
to system PATH or turn to 3. - Mannually set
Git: Path
to the abosulte path of your Git in VSCode.
Take many factors into consideration, my solution to LSP server is to install and configure clangd of LLVM project for VSCode.
- Download latest LLVM released binaries from official site or manually build the projects from source code, install them to a propriate folder (marked as
$LLVM_ROOT
) afterwards. - Install
clangd
extension for vscode. - Open settings of extension
clangd
, setClangd: Path
to$LLVM_ROOT\bin\clangd.exe
(type absolute path of clangd.exe here). - Modify
settings.json
of VSCode, append content asclangd.cfg
. - Create
.clangd
file at the root path of workspace or at, edit as.clangd
or whatever you want, for more information, browser official site of clangd. - For global configuration, edit and put the config file
clangd/config.yaml
into the user directory (defaultly%USERPROFILE%/AppData/Local
on Windows) according to the help information provided byclangd
. In addition, relevant config files.clang-tidy
/.clang-format
forclang-tidy
/clang-format
can be put into the root path of any workspace to implement global configuration.
- ★★★★★
editor.action.blockComment
"ctrl+shift+/"
- ★★★★★
editor.action.insertCursorAtEndOfEachLineSelected
"ctrl+shift+l"
- ★★★★★
editor.action.selectHighlights
"shift+alt+d"
- ★★★★★
breadcrumbs.focusAndSelect
"ctrl+shift+."
- ★★★★★
editor.action.moveLinesUpAction
"ctrl+shift+up"
- ★★★★★
editor.action.moveLinesDownAction
"ctrl+shift+down"
- ★★★★☆
editor.action.quickFix
"ctrl+shift+."
- ★★★★☆
editor.action.jumpToBracket
"ctrl+m"
- ★★★★☆
editor.action.transformToUppercase
"ctrl+k ctrl+u"
- ★★★★☆
editor.action.transformToLowercase
"ctrl+k ctrl+l"
- ★★★★☆
workbench.action.toggleSidebarVisibility
"ctrl+alt+b"
- ★★★☆☆
selectAllSearchEditorMatches
"shift+alt+d"
- ★★★☆☆
addCursorsAtSearchResults
"shift+alt+d"
- notebook.cell.detectLanguage
- editor.action.formatSelection
- editor.detectLanguage
- editor.action.toggleTabFocusMode
- editor.toggleFold
- editor.action.removeCommentLine
- editor.action.inPlaceReplace.up
- workbench.action.files.saveWithoutFormatting
- editor.action.copyLinesUpAction
- editor.action.copyLinesDownAction
- editor.action.insertCursorAbove
- editor.action.insertCursorBelow
- editor.action.autoFix
- clangd.typeHierarchy
- breadcrumbs.toggleToOn
- cursorColumnSelectDown
- cursorColumnSelectLeft
- cursorColumnSelectPageDown
- cursorColumnSelectPageUp
- cursorColumnSelectRight
- cursorColumnSelectUp
- problems.action.showQuickFixes
- workbench.action.openSettings
editor.action.triggerSuggest
"ctrl+i"
editor.action.addSelectionToNextFindMatch
"ctrl+d"
editor.action.trimTrailingWhitespace
"ctrl+k ctrl+x"
editor.action.insertLineAfter
"ctrl+enter"
editor.action.insertLineBefore
ctrl+shift+enter
editor.action.formatDocument
"shift+alt+f"
clangd: Switch Between Source/Header
"alt+o"
workbench.action.editor.changeLanguageMode
"ctrl+k m"
workbench.action.togglePanel
"ctrl+j"
workbench.action.terminal.toggleTerminal
"ctrl+backtick"
workbench.action.terminal.new
"ctrl+shift+backtick"
workbench.action.closeFolder
"ctrl+k f"
editor.action.refactor
"ctrl+shift+r"
workbench.action.quickOpen
"ctrl+p"
workbench.action.showCommands
"ctrl+shift+p"
workbench.action.gotoLine
"ctrl+g"
workbench.action.openRecent
"ctrl+r"
markdown.showPreviewToSide
"ctrl+k v"