Add example vscode files

This commit is contained in:
Leroy Hopson 2021-06-20 10:08:29 +07:00
parent bd296364d3
commit 3dd89ec0a7
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
4 changed files with 34 additions and 0 deletions

3
.gitignore vendored
View file

@ -13,3 +13,6 @@ mono_crash.*
# Emscripten-specific ignores # Emscripten-specific ignores
.emcache/ .emcache/
# IDE-specific ignores
.vscode

2
misc/vscode/readme.txt Normal file
View file

@ -0,0 +1,2 @@
Example vscode files.
Could be placed in a .vscode directory at the root of this repo, but paths may need to be modified.

View file

@ -0,0 +1,5 @@
{
"editor.formatOnSave": true,
"clang-format.executable": "/run/current-system/sw/bin/clang-format",
"nixEnvSelector.nixShellConfig": "NOT_MODIFIED_ENV"
}

24
misc/vscode/tasks.json Normal file
View file

@ -0,0 +1,24 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"options": {
"cwd": "${workspaceFolder}/addons/godot_xterm/native",
},
"command": "nix-shell",
"args": [
"-I",
"nixpkgs=~/nixpkgs",
"-p",
"scons",
"--run",
"./build.sh"
],
"problemMatcher": []
}
]
}