vscode使用配置

C++ 相关环境

修改 c_cpp_properties.json 里面的配置

下面的路径是 vs2010 IDE 的,win10 下面

"includePath": [
"${workspaceFolder}/**",
"${workspaceRoot}",
"D:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/include",
"D:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/atlmfc/include"
]

显示函数列表

方法一:显示大纲

方法二:Shift+Ctl+O

Code → Preferences → Settings or ⌘,:

tab to space

// The number of spaces a tab is equal to. This setting is overridden
// based on the file contents when `editor.detectIndentation` is true.
"editor.tabSize": 4,

// Insert spaces when pressing Tab. This setting is overriden
// based on the file contents when `editor.detectIndentation` is true.
"editor.insertSpaces": true,

// When opening a file, `editor.tabSize` and `editor.insertSpaces`
// will be detected based on the file contents. Set to false to keep
// the values you've explicitly set, above.
"editor.detectIndentation": false