112 lines
3.6 KiB
JSON
112 lines
3.6 KiB
JSON
{
|
||
"files.defaultLanguage": "c", // ctrl+N新建文件后默认的语言
|
||
"editor.formatOnType": true, // 输入分号(C/C++的语句结束标识)后自动格式化当前这一行的代码
|
||
"editor.suggest.snippetsPreventQuickSuggestions": false, // clangd的snippets有很多的跳转点,不用这个就必须手动触发Intellisense了
|
||
"editor.acceptSuggestionOnEnter": "off", // 我个人的习惯,按回车时一定是真正的换行,只有tab才会接受Intellisense
|
||
|
||
"code-runner.runInTerminal": true, // 设置成false会在“输出”中输出,无法输入
|
||
"code-runner.saveFileBeforeRun": true, // run code前保存
|
||
"code-runner.preserveFocus": true, // 若为false,run code后光标会聚焦到终端上。如果需要频繁输入数据可设为false
|
||
"code-runner.clearPreviousOutput": false, // 每次run code前清空属于code runner的终端消息,默认false
|
||
"code-runner.ignoreSelection": true, // 默认为false,效果是鼠标选中一块代码后可以单独执行,但C是编译型语言,不适合这样用
|
||
|
||
"C_Cpp.clang_format_sortIncludes": true,
|
||
"files.associations": {
|
||
"array": "cpp",
|
||
"atomic": "cpp",
|
||
"*.tcc": "cpp",
|
||
"cctype": "cpp",
|
||
"clocale": "cpp",
|
||
"cmath": "cpp",
|
||
"cstdarg": "cpp",
|
||
"cstddef": "cpp",
|
||
"cstdint": "cpp",
|
||
"cstdio": "cpp",
|
||
"cstdlib": "cpp",
|
||
"cwchar": "cpp",
|
||
"cwctype": "cpp",
|
||
"deque": "cpp",
|
||
"unordered_map": "cpp",
|
||
"vector": "cpp",
|
||
"exception": "cpp",
|
||
"algorithm": "cpp",
|
||
"memory": "cpp",
|
||
"memory_resource": "cpp",
|
||
"optional": "cpp",
|
||
"string": "cpp",
|
||
"string_view": "cpp",
|
||
"system_error": "cpp",
|
||
"tuple": "cpp",
|
||
"type_traits": "cpp",
|
||
"utility": "cpp",
|
||
"fstream": "cpp",
|
||
"initializer_list": "cpp",
|
||
"iosfwd": "cpp",
|
||
"iostream": "cpp",
|
||
"istream": "cpp",
|
||
"limits": "cpp",
|
||
"new": "cpp",
|
||
"ostream": "cpp",
|
||
"sstream": "cpp",
|
||
"stdexcept": "cpp",
|
||
"streambuf": "cpp",
|
||
"typeinfo": "cpp",
|
||
"valarray": "cpp",
|
||
"cassert": "cpp",
|
||
"cerrno": "cpp",
|
||
"cfloat": "cpp",
|
||
"chrono": "cpp",
|
||
"ciso646": "cpp",
|
||
"climits": "cpp",
|
||
"complex": "cpp",
|
||
"csetjmp": "cpp",
|
||
"csignal": "cpp",
|
||
"cstring": "cpp",
|
||
"ctime": "cpp",
|
||
"cuchar": "cpp",
|
||
"numeric": "cpp",
|
||
"ratio": "cpp",
|
||
"version": "cpp",
|
||
"bitset": "cpp",
|
||
"regex": "cpp",
|
||
"random": "cpp",
|
||
"unordered_set": "cpp",
|
||
"list": "cpp",
|
||
"any": "cpp",
|
||
"functional": "cpp",
|
||
"mutex": "cpp",
|
||
"shared_mutex": "cpp",
|
||
"thread": "cpp",
|
||
"variant": "cpp",
|
||
"map": "cpp",
|
||
"scoped_allocator": "cpp",
|
||
"future": "cpp",
|
||
"iomanip": "cpp",
|
||
"forward_list": "cpp",
|
||
"bit": "cpp",
|
||
"ccomplex": "cpp",
|
||
"cfenv": "cpp",
|
||
"charconv": "cpp",
|
||
"cinttypes": "cpp",
|
||
"codecvt": "cpp",
|
||
"condition_variable": "cpp",
|
||
"cstdalign": "cpp",
|
||
"cstdbool": "cpp",
|
||
"ctgmath": "cpp",
|
||
"set": "cpp",
|
||
"iterator": "cpp",
|
||
"filesystem": "cpp",
|
||
"ios": "cpp",
|
||
"locale": "cpp",
|
||
"queue": "cpp",
|
||
"stack": "cpp",
|
||
"typeindex": "cpp",
|
||
"compare": "cpp",
|
||
"concepts": "cpp",
|
||
"coroutine": "cpp",
|
||
"numbers": "cpp",
|
||
"ranges": "cpp",
|
||
"span": "cpp",
|
||
"stop_token": "cpp"
|
||
}, // 格式化时调整include的顺序(按字母排序)
|
||
} |