Skip to content

Commit

Permalink
Add vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
intns committed Jan 2, 2024
1 parent 6dcbb41 commit acab183
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 22 deletions.
34 changes: 31 additions & 3 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,42 @@
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/include"
"${workspaceFolder}/include",
"${workspaceFolder}/include/stl"
],
"cStandard": "c99",
"cppStandard": "c++98",
"intelliSenseMode": "linux-clang-x86",
"compilerPath": "",
"configurationProvider": "ms-vscode.makefile-tools"
"configurationProvider": "ms-vscode.makefile-tools",
"forcedInclude": [".vscode/warnings.h"]
},
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/include",
"${workspaceFolder}/include/stl"
],
"cStandard": "c99",
"cppStandard": "c++98",
"intelliSenseMode": "windows-clang-x86",
"compilerPath": "",
"configurationProvider": "ms-vscode.makefile-tools",
"forcedInclude": [".vscode/warnings.h"]
},
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/include",
"${workspaceFolder}/include/stl"
],
"cStandard": "c99",
"cppStandard": "c++98",
"intelliSenseMode": "macos-clang-x86",
"compilerPath": "",
"configurationProvider": "ms-vscode.makefile-tools",
"forcedInclude": [".vscode/warnings.h"]
}
],
"version": 4
}
}
10 changes: 5 additions & 5 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"recommendations": [
"ms-vscode.cpptools",
"xaver.clang-format"
]
}
"recommendations": [
"ms-vscode.cpptools",
"ms-vscode.makefile-tools"
]
}
32 changes: 18 additions & 14 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
{
"[c]": {
"files.encoding": "shiftjis",
"editor.defaultFormatter": "xaver.clang-format"
},
"[cpp]": {
"files.encoding": "shiftjis",
"editor.defaultFormatter": "xaver.clang-format"
},

"editor.tabSize": 4,
"files.associations": {
"source_location": "cpp",
"types.h": "c"
}
"[c]": {
"files.encoding": "shiftjis",
"editor.defaultFormatter": "ms-vscode.cpptools"
},
"[cpp]": {
"files.encoding": "shiftjis",
"editor.defaultFormatter": "ms-vscode.cpptools"
},
"editor.tabSize": 4,
"files.exclude": {
"**/*.ctx": true
},
"files.associations": {
"*.c.ctx": "c",
"*.ctx": "cpp",
"source_location": "cpp",
"*.cp": "cpp",
}
}
6 changes: 6 additions & 0 deletions .vscode/warnings.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// disables the "too many characters in character constant" intellisense error, because we have u64 constants all over the place
#pragma diag_suppress 26
// disables the "invalid multibyte character sequence" error since we have to escape shift-jis misreads a lot
#pragma diag_suppress 870
// disables the "invalid arguments for operator new" error
#pragma diag_suppress 1767

0 comments on commit acab183

Please sign in to comment.