vscode的插件推荐和配置说明
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zhaohe e14fa02d80 Update 'README.md' 3 years ago
README.md Update 'README.md' 3 years ago

README.md

README

CMake Language Support

cmake-format

cmake语言高亮
cmake格式化
sudo apt-get install cmake-format

Sublime Text Keymap and Settings Importer

Better C++ Syntax

CMake

CMake Language Support(josetr.cmake-language-support-vscode)

CMake Tools(ms-vscode.cmake-tools)

Doxygen Documentation Generator

Markdown All in One(yzhang.markdown-all-in-one)

Bracket Select

快速选择括号内内容的功能
CMDS:
bracket-select.select	BraSel:Select	Alt+A
bracket-select.undo-select	BraSel:UndoSelect	Alt+Z
bracket-select.select-include	BraSel:SelectInclude	Ctrl+Alt+A

C/C++(ms-vscode.cpptools)


C/C++ Snippets : programmershri.cppsnippets

c++代码片段

highlight-words

高亮选中的单词
CMD:
highlightwords.addHighlight	                        Highlight Toggle Current		
highlightwords.removeHighlight	                    Highlight Remove		
highlightwords.removeAllHighlights	                Highlight Remove All		
highlightwords.addRegExpHighlight	                Highlight Expression		
highlightwords.addHighlightWithOptions	            Highlight Selection with Options		
highlightwords.setHighlightMode	                    Set Highlight Mode		
highlightwords.treeRemoveHighlight	                Remove		view/item/context
highlightwords.treeHighlightOptions	                Change Options		view/item/context
highlightwords.toggleSidebar	                    Highlight Toggle Sidebar		
highlightwords.findPrevious	Back		            view/item/context
highlightwords.findNext	Next		                view/item/context

Project Manager

工程管理,可以快速在工程间切换

Comment Box

推荐配置

    "commentBox.styles": {
        "defaultStyle": {
            "capitalize": false,
            "ignoreInnerIndentation": false,
            "ignoreOuterIndentation": false,
            "removeEmptyLines": false,
            "textAlignment": "center",
            "boxWidth": 200,
            "fillingToken": "="
        }
    },

change-case

用于快速更换命名方式

open_the_door
openTheDoor
OpenTheDoor


Header source switch

快速在头文件和目标文件之间切换
alt+o

shell-format

ExtensionId:foxundermoon.shell-format

配置说明
####################################
1. 安装插件
vscode搜索foxundermoon.shell-format,然后安装
2. 安装shfmt(ubuntu)
snap install shfmt
3. 确定shfmt路径
>where shfmt
/snap/bin/shfmt
PS:注意安装完后需要新打开一个terminal刷新下环境变量,才能看到shfmt
4. 配置插件
ctrl+p,Open Settings (JSON),配置中添加下面配置
"shellformat.path": "/snap/bin/shfmt"