【工具】vscode全部改造/c++configuration

  1. 插件

method separator https://github.com/Microsoft/vscode/issues/56530
简简单单装几个

  1. color theme
    现在用的是community material theme
    其实依然不太满意,找不到好看的颜色搭配

3。 配置竖直切割线
在这里插入图片描述

{
	// AppData/Roaming/Code/User/settings.json
    "security.workspace.trust.untrustedFiles": "open",
    "editor.fontSize": 16,
    "editor.tabSize": 2,
    "editor.rulers": [
        80
    ],
    "workbench.colorTheme": "Community Material Theme"
}

啥卵vscode设置不了函数分割

  1. 2格缩进
    在这里插入图片描述

  2. snippet!
    终于找到怎么设置了
    可是找不到原始的在哪里
    很烦

{
	// AppData/Roaming/Code/User/snippets/cpp.json
	// 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"
	// }
	"For loop": {
		"prefix": "for",
		"body": [
			"for (int ${1:i} = 0; ${1:i} < ${2:cnt}; ${1:i}++) {",
			"  ${3:/* code */}",
			"}",
		]
	},
	"For range loop": {
		"prefix": "forrange",
		"body": [
			"for (auto&& ${1:i} : ${2:vec}) {",
			"  ${3:/* code */}",
			"}",
		]
	},
	"If then": {
		"prefix": "if",
		"body": [
			"if (${1:/* condition */}) {",
			"  $2",
			"}"
		],
		"description": "for myself `if` snippet"
	}
}

官网链接
并没有找到


引用头文件找不到路径问题
在这里插入图片描述
以前一直能找到的,某天突然报错
这个时候,点击quick fix
在这里插入图片描述
选择第一个,add to including path
会弹出 IntelliSense Configurations

在这里插入图片描述
添加第三行即可

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值