-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.json
155 lines (150 loc) · 4.47 KB
/
settings.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
{
"C_Cpp.default.compileCommands": "${workspaceFolder}/build/compile_commands.json",
"workbench.colorTheme": "Eva Light Italic Bold",
"explorer.confirmDragAndDrop": false,
"makefile.configureOnOpen": true,
"extensions.ignoreRecommendations": true,
"explorer.confirmDelete": false,
"workbench.iconTheme": "material-icon-theme",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.minimap.renderCharacters": false,
"editor.minimap.enabled": false,
"cmake.options.statusBarVisibility": "icon",
"terminal.integrated.enableMultiLinePasteWarning": "never",
"code-runner.runInTerminal": true,
"editor.formatOnSave": true,
"explorer.compactFolders": false,
"cSpell.userWords": [
"rclcpp",
"iostream",
"ostream",
"array",
"atomic",
"cctype",
"clocale",
"cmath",
"cstdarg",
"cstddef",
"cstdint",
"cstdio",
"cstdlib",
"cwchar",
"cwctype",
"deque",
"unordered_map",
"vector",
"exception",
"algorithm",
"memory",
"optional",
"string",
"tuple",
"utility",
"fstream",
"sstream",
"stdexcept",
"typeinfo",
"iomanip",
"iosfwd",
"istream",
"streambuf",
"stdbool",
"chrono",
"cstring",
"cinttypes",
"typeindex",
"esbenp",
"xaver",
"SpaceBeforeParens"
],
// 新增的C++相关配置
"files.associations": {
"iostream": "cpp",
"ostream": "cpp",
"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",
"istream": "cpp",
"limits": "cpp",
"new": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"typeinfo": "cpp",
"stdbool.h": "c",
"cstring": "cpp",
"ctime": "cpp",
"bit": "cpp",
"bitset": "cpp",
"chrono": "cpp",
"compare": "cpp",
"complex": "cpp",
"concepts": "cpp",
"condition_variable": "cpp",
"forward_list": "cpp",
"list": "cpp",
"map": "cpp",
"set": "cpp",
"unordered_set": "cpp",
"functional": "cpp",
"iterator": "cpp",
"numeric": "cpp",
"random": "cpp",
"ratio": "cpp",
"iomanip": "cpp",
"mutex": "cpp",
"numbers": "cpp",
"semaphore": "cpp",
"stop_token": "cpp",
"thread": "cpp",
"cinttypes": "cpp",
"typeindex": "cpp"
},
"[python]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[cpp]": {
"editor.defaultFormatter": "xaver.clang-format"
},
"[c]": {
"editor.defaultFormatter": "xaver.clang-format"
},
// clang-format 配置,设置为使用主目录的 .clang-format
"C_Cpp.clang_format_fallbackStyle": "none", // 禁用默认风格,确保只使用主目录的配置文件
// 确保在没有 .clang-format 文件时不会应用 Google 风格
//"clang-format.style": "{ BasedOnStyle: LLVM, IndentWidth: 2, ColumnLimit: 100, AllowShortIfStatementsOnASingleLine: false, SpaceBeforeParens: ControlStatements, BraceWrapping: { AfterFunction: true, AfterControlStatement: true, AfterClass: false, AfterStruct: false, SplitEmptyFunction: true }, DerivePointerAlignment: false, PointerAlignment: Left, BinPackParameters: true, AlignAfterOpenBracket: DontAlign, PenaltyBreakBeforeFirstCallParameter: 100 }",
"prettier.printWidth": 80,
"prettier.tabWidth": 4,
"prettier.useTabs": false,
"prettier.singleQuote": true,
"prettier.trailingComma": "none",
"prettier.semi": true,
"workbench.settings.applyToAllProfiles": []
}