Merge pull request #19 from nanaian/vscode

add editor dotfiles
This commit is contained in:
Ethan Roseman 2020-08-15 19:25:51 -04:00 committed by GitHub
commit 43320efc03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 121 additions and 1 deletions

10
.editorconfig Normal file
View File

@ -0,0 +1,10 @@
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.yaml]
indent_size = 2

1
.gitignore vendored
View File

@ -10,7 +10,6 @@ bin/
build/
yay0/
expected/
.vscode/
.idea/
.DS_Store
venv/

18
.vscode/c_cpp_properties.json vendored Normal file
View File

@ -0,0 +1,18 @@
{
"version": 4,
"configurations": [
{
"name": "papermario",
"includePath": [
"${workspaceFolder}/include"
],
"defines": [
"F3DEX_GBI_2",
"_LANGUAGE_C"
],
"cStandard": "c89",
"cppStandard": "c++17",
"intelliSenseMode": "gcc-x86"
}
]
}

6
.vscode/extensions.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"recommendations": [
"ms-vscode.cpptools",
"nanaian.vscode-star-rod",
],
}

6
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"editor.detectIndentation": false,
"editor.insertSpaces": true,
"files.eol": "\n",
"files.insertFinalNewline": true,
}

81
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,81 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "make",
"type": "shell",
"command": "PM_HEADER_REBUILD=1 make all",
"problemMatcher": [
{
"fileLocation": ["relative", "${workspaceFolder}"],
"pattern": {
"regexp": "^(src\\/.*):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"severity": 3,
"message": 4,
},
},
{
"fileLocation": ["relative", "${workspaceFolder}"],
"severity": "error",
"pattern": {
"regexp": "^(src\\/.*):(\\d+):\\s+(?!warning|\\()(.*)$",
"file": 1,
"line": 2,
"message": 3,
},
},
],
"group": {
"kind": "build",
"isDefault": true,
},
},
{
"label": "diff",
"type": "shell",
"command": "PM_HEADER_REBUILD=1 ./diff.py -mwo ${input:funcName}",
"isBackground": true,
"problemMatcher": [
{
"fileLocation": ["relative", "${workspaceFolder}"],
"background": {
"activeOnStart": true,
},
"pattern": {
"regexp": "^(src\\/.*):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"severity": 3,
"message": 4,
},
},
{
"fileLocation": ["relative", "${workspaceFolder}"],
"background": {
"activeOnStart": true,
},
"severity": "error",
"pattern": {
"regexp": "^(src\\/.*):(\\d+):\\s+(?!warning|\\()(.*)$",
"file": 1,
"line": 2,
"message": 3,
},
},
],
"group": {
"kind": "test",
"isDefault": true,
},
},
],
"inputs": [
{
"id": "funcName",
"description": "Function name",
"type": "promptString",
}
],
}