diff --git a/.gitignore b/.gitignore index 53eafc9..a8d1119 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,6 @@ mono_crash.* # Emscripten-specific ignores .emcache/ + +# IDE-specific ignores +.vscode diff --git a/misc/vscode/readme.txt b/misc/vscode/readme.txt new file mode 100644 index 0000000..5377967 --- /dev/null +++ b/misc/vscode/readme.txt @@ -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. diff --git a/misc/vscode/settings.json b/misc/vscode/settings.json new file mode 100644 index 0000000..5b36a98 --- /dev/null +++ b/misc/vscode/settings.json @@ -0,0 +1,5 @@ +{ + "editor.formatOnSave": true, + "clang-format.executable": "/run/current-system/sw/bin/clang-format", + "nixEnvSelector.nixShellConfig": "NOT_MODIFIED_ENV" +} diff --git a/misc/vscode/tasks.json b/misc/vscode/tasks.json new file mode 100644 index 0000000..734b06e --- /dev/null +++ b/misc/vscode/tasks.json @@ -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": [] + } + ] +} \ No newline at end of file