1、好看的主题
直接去vscode的商店搜索github theme
2、关掉vscode中的括号自动补全
3、如果想定制快捷的插入内容(snippet)
需要找到的选项是 new snippet
可以参考文章
clion也可以这样操作
vscode定制快速文件头,可以自动显示文件名以及创建时间
对于vscode来说,如果想设置多个snippet,则
{
// Place your snippets for systemverilog 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"
// }
"ANN":{"prefix": "annotation",
"body": [
// "#!/usr/bin/env python",
// "// -*- coding: utf-8 -*-",
"/**********************************************************************
"@
"**********************************************************************/
"$0"
]},
"HEADER":{"prefix": "author",
"body":[
"/*
"@File : $TM_FILENAME",
"@Time : $CURRENT_YEAR/$CURRENT_MONTH/$CURRENT_DATE $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND",
"@Author : YouChunBo ",
"@Version : 1.0",
"@Site : ",
"@Desc : None",
"*/
"$0"
]},
"PNT":{"prefix": "ppp",
"body": [
"printf;
"$0"
]},
}
4、远程连接服务器后,在vscode中依然有语法高亮
在用vscode连接服务器后,点击插件商店,然后选在在ssh xxx处安装插件即可
5 将新的语言的语法检测与已有的语法检测关联
在settings.json文件中添加如下内容
其中setting文件的打开方式为:
6、在vscode是使用vim
7 在vscode中使用merge工具
其中1是显示结果中包含什么,2是执行什么操作,可以反复点击,3是都操作完以后输出结果
8 sublime文件后缀更改
参考
SublimeText 修改文件扩展名的默认语法高亮 - 削微寒 - 博客园 (cnblogs.com)https://www.cnblogs.com/xueweihan/p/9830168.html
9 安装ctags
在vscode商店下载ctags就可以了,然后使用也是参考vim下的ctags
10 使用函数的reference功能
对着函数右键go to reference之后,就会在侧边栏出现一个reference的标志,其中就包含这这个函数的所有reference