vscode配置


 

插件:

更新clang到9版本,使用clangd插件

sdlang插件查看sdl文件,

rainbow csv

remote workspace

intellicode

autocomment blocks

Comment Divider

 

doxygen注釋風格

有兩種風格,一種是javdoc風格,都是@符號,一種是cpp風格,都是//

https://blog.51cto.com/ticktick/188674

https://blog.csdn.net/czyt1988/article/details/8901191

https://www.jianshu.com/p/02d586a57f83

javadoc風格

https://www.xuebuyuan.com/1302294.html

 

 

 

"better-comments.tags": [

{

"tag": "!",

"color": "#FF2D00",

"strikethrough": false,

"backgroundColor": "transparent"

},

{

"tag": "?",

"color": "#3498DB",

"strikethrough": false,

"backgroundColor": "transparent"

},

{

"tag": "//",

"color": "#474747",

"strikethrough": true,

"backgroundColor": "transparent"

},

{

"tag": "todo",

"color": "#FF8C00",

"strikethrough": false,

"backgroundColor": "transparent"

},

{

"tag": "*",

"color": "#98C379",

"strikethrough": false,

"backgroundColor": "transparent"

},

{

"tag": "~",

"color": "#98C379",

"strikethrough": false,

"backgroundColor": "transparent"

},

 

// function header

"doxdocgen.generic.order": [

"brief",

"tparam",

"param",

"return",

"date"

],

"doxdocgen.file.fileOrder": [

"file",

"author",

"brief",

"version",

"date",

"empty",

"copyright",

"empty",

"custom"

],

"doxdocgen.c.triggerSequence": "///",

"doxdocgen.generic.splitCasingSmartText": true,

"doxdocgen.file.copyrightTag": [

"@copyright Copyright (c) {year}"

],

"editor.suggestSelection": "first",

"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",

"python.jediEnabled": false,

"doxdocgen.generic.authorEmail": "zhensheng@outlook.com",

"doxdocgen.generic.authorName": "zhensheng"

// simple tag string

"tagged.tagString": "// #enteredText added by lzs ;) #year-#month-#day",

// section divider

"divider.text": "*",

 

// auto-close-tag

"auto-close-tag.SublimeText3Mode": true,

// xml-tools and xml language support

"xmlTools.xqueryExecutionEngine": "D:\\Program Files (x86)\\BaseX\\BaseX.exe",

"xmlLang.javaHome": "C:\\Program Files\\Java\\jre1.8.0_161\\bin",

"xmlLang.xmlAssociations": [],

"xmlLang.xmlCatalogFiles": "",

 

// auto comment tools

// file Header

"psi-header.config": {

"forceToTop": true,

"blankLinesAfter": 6,

"license": "Custom"

},

"psi-header.changes-tracking": {

"isActive": false,

"modAuthor": " 修 改 人:",

"modDate": " 修改日期:",

"modDateFormat": "YYYY-MM-DD, h:mm:ss a",

"include": [],

"exclude": [

"markdown",

"json"

],

"autoHeader": "off"

},

"psi-header.license-text": [

"版權所有 (C)2017-2020, <<company>>"

],

"psi-header.variables": [

["company", "股份有限公司"],

["author", "黎, 部"],

["authoremail", "li.zhensheng@zte.com.cn"]

],

"psi-header.lang-config": [

{

"language": "cpp",

"begin": "/*******************************************************************************",

"prefix": "* ",

"end": "*******************************************************************************/",

"blankLinesAfter": 1

},

{

"language": "c",

"mapTo": "cpp"

},

{

"language": "shellscript",

"begin": "",

"prefix": "# ",

"end": "",

"blankLinesAfter": 1,

"beforeHeader": [

"#!/bin/sh\n"

]

},

{

"language": "bat",

"begin": "",

"prefix": "@ REM ",

"end": "",

"blankLinesAfter": 1

},

{

"language": "python",

"begin": "'''",

"prefix": "* ",

"end": "'''",

"blankLinesAfter": 1,

"beforeHeader": [

"# -*- coding:utf-8 -*-\n"

]

},

{

"language": "PlantUML",

"begin": "",

"prefix": "' ",

"end": "",

"blankLinesAfter": 1

}

],

"psi-header.templates": [

{

"language": "cpp",

"template": [

"Copyright (c) <<year>> <<company>>",

"文件名稱:  <<filename>>",

"文件標識:  ",

"內容摘要:  簡要描述本文件的內容,包括主要模塊、函數及其功能的說明",

"其他說明:  其它內容的說明",

"當前版本:  V1.00",

"    :  <<author>>",

"完成日期:  <<dateformat('YYYY-MM-DD, h:mm:ss a')>>",

"",

"修改記錄1:  修改歷史記錄,包括修改日期、修改者及修改內容",

" 修改日期:  ",

" :  ",

" :  ",

" 修改內容:  ",

"修改記錄2:  "

]

},

{

"language": "python",

"template": [

"Copyright (c) <<year>> <<company>>",

"文件名稱:  <<filename>>",

"內容摘要:  簡要描述本文件的內容,包括主要模塊、函數及其功能的說明",

"其他說明:  其它內容的說明",

"當前版本:  V1.00",

"    :  <<author>>",

"完成日期:  <<dateformat('YYYY-MM-DD, h:mm:ss a')>>"

]

},

{

"language": "c",

"mapTo": "cpp"

},

{

"language": "shellscript",

"mapTo": "python"

},

{

"language": "bat",

"mapTo": "python"

},

{

"language": "PlantUML",

"mapTo": "python"

}

],

 

// section divider

"divider.text.level1": "*",

"divider.text.level2": "*",

"divider.endColumn": 80,

"divider.lines": 3,

{

    // Place your snippets for c here. Each snippet is defined under a snippet name and has a prefix, body and

    // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:

    // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the

    // same ids are connected.

    // Example:

    // "Print to console": {

    //  "prefix": "log",

    //  "body": [

    //      "console.log('$1');",

    //      "$2"

    //  ],

    //  "description": "Log output to console"

// }

"Define Macro": {

"prefix": "zsmacro",

"body": [

"#define $1 (${CLIPBOARD})",

],

"description": "define macro from clipboard"

},

"C Source Header": {

"prefix": "zssrcheader",

"body": [

"/*********************************************************************************************************************/",

"/*                                   #include(依次為標准庫頭文件、非標准庫頭文件)                                  */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                                    常量定義                                                    */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                                文件內部使用的宏                                                 */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                             文件內部使用的數據類型                                               */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                         ( )                                           */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                            本地變量(靜態全局變量)                                              */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                                  局部函數原型                                                   */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                           ( )                                         */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                                    局部函數                                                     */",

"/*********************************************************************************************************************/"

],

"description": "C Source Header"

},

"C Header Header": {

"prefix": "zsheaderheader",

"body": [

"/*********************************************************************************************************************/",

"/*                                                其它條件編譯選項                                                 */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                   #include(依次為標准庫頭文件、非標准庫頭文件)                                  */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                                    常量定義                                                     */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                                     全局宏                                                      */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                                  全局數據類型                                                   */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                                  全局函數原型                                                   */",

"/*********************************************************************************************************************/"

],

"description": "C Header Header"

},

"zsSrcDivider": {

"prefix": "zssrcdivider",

"body": [

"/*********************************************************************************************************************/",

"/*                                                $1<comment here>                                                */",

"/*********************************************************************************************************************/"

],

"description": "Insert a 3-line divider from cursor"

}

}

 

{

// Place your snippets for cpp here. Each snippet is defined under a snippet name and has a prefix, body and

// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:

// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the

// same ids are connected.

// Example:

// "Print to console": {

//  "prefix": "log",

//  "body": [

//      "console.log('$1');",

//      "$2"

//  ],

//  "description": "Log output to console"

// }

"Define Macro": {

"prefix": "zsmacro",

"body": [

"#define $1 (${CLIPBOARD})",

],

"description": "define macro from clipboard"

},

"Cpp Source Header": {

"prefix": "zssrcheader",

"body": [

"/*********************************************************************************************************************/",

"/*                                   #include(依次為標准庫頭文件、非標准庫頭文件)                                  */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                                    常量定義                                                    */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                                文件內部使用的宏                                                 */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                             文件內部使用的數據類型                                               */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                         ( )                                           */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                            本地變量(即靜態全局變量)                                             */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                                  局部函數原型                                                    */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                         ( )                                           */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                                    局部函數                                                     */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                                    類的實現                                                     */",

"/*********************************************************************************************************************/"

],

"description": "Cpp Source Header"

},

"Cpp Header Header": {

"prefix": "zsheaderheader",

"body": [

"/*********************************************************************************************************************/",

"/*                                                其它條件編譯選項                                                 */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                   #include(依次為標准庫頭文件、非標准庫頭文件)                                  */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                                    常量定義                                                    */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                                     全局宏                                                     */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                                  全局數據類型                                                  */",

"/*********************************************************************************************************************/",

"/*********************************************************************************************************************/",

"/*                                                  全局函數原型                                                  */",

"/*********************************************************************************************************************/"

],

"description": "Cpp Header Header"

},

"zsSrcDivider": {

"prefix": "zssrcdivider",

"body": [

"/*********************************************************************************************************************/",

"/*                                                $1<comment here>                                               */",

"/*********************************************************************************************************************/"

],

"description": "Insert a 3-line divider from cursor"

}

}

 

{

/*

    // Place your snippets for Markdown here. Each snippet is defined under a snippet name and has a prefix, body and

    // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:

    // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the

    // same ids are connected.

    // Example:

    "Print to console": {

        "prefix": "log",

        "body": [

            "console.log('$1');",

            "$2"

        ],

        "description": "Log output to console"

    }

*/

"Shell Code Block": {

"prefix": "shell",

"body": [

"```shell",

"$0",

"```"

],

"description": "Place a markdown code block for shell here"

},

"PlantUML Code Block": {

"prefix": "plantuml",

"body": [

"```plantuml",

"$0",

"```"

],

"description": "Place a plantuml code block for shell here"

}

}

 

{

// Place your snippets for plantuml here. Each snippet is defined under a snippet name and has a prefix, body and

// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:

// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the

// same ids are connected.

// Example:

// "Print to console": {

//  "prefix": "log",

//  "body": [

//      "console.log('$1');",

//      "$2"

//  ],

//  "description": "Log output to console"

// }

"zsSrcDivider": {

"prefix": "zssrcdivider",

"body": [

"' ******************************************************************************",

"' *                            $1<comment here>                                *",

"' ******************************************************************************"

],

"description": "Insert a 3-line divider from cursor"

}

}



免責聲明!

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



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