From 3dd89ec0a74161cfea5ba9c689b02b8cfb64e70b Mon Sep 17 00:00:00 2001 From: Leroy Hopson Date: Sun, 20 Jun 2021 10:08:29 +0700 Subject: [PATCH] Add example vscode files --- .gitignore | 3 +++ misc/vscode/readme.txt | 2 ++ misc/vscode/settings.json | 5 +++++ misc/vscode/tasks.json | 24 ++++++++++++++++++++++++ 4 files changed, 34 insertions(+) create mode 100644 misc/vscode/readme.txt create mode 100644 misc/vscode/settings.json create mode 100644 misc/vscode/tasks.json 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