diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 00000000000..ff6a8c1929f --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,20 @@ +{ + "configurations": [ + { + "name": "Win32", + "includePath": [ + "${workspaceFolder}/**" + ], + "defines": [ + "_DEBUG", + "UNICODE", + "_UNICODE" + ], + "compilerPath": "C:\\QMK_MSYS\\mingw64\\bin\\gcc.exe", + "cStandard": "c17", + "cppStandard": "gnu++17", + "intelliSenseMode": "windows-gcc-x64" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 7a1eac2aa5c..b4df1565c98 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -5,6 +5,7 @@ "ms-vscode.cpptools", "plorefice.devicetree", "twxs.cmake", - "unifiedjs.vscode-mdx" + "unifiedjs.vscode-mdx", + "twxs.cmake" ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index 924d83b1f25..9dcb23667d0 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,22 +1,48 @@ { - "files.associations": { - "*.overlay": "dts", - "*.keymap": "dts" - }, - "python.formatting.provider": "black", "[c]": { + "editor.formatOnPaste": false, + "editor.formatOnSave": false + }, + "[css][json][jsonc][html][markdown][yaml]": { + "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.formatOnSave": true }, "[javascript][javascriptreact][typescript][typescriptreact]": { - "editor.formatOnSave": true, - "editor.defaultFormatter": "esbenp.prettier-vscode" + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true + }, + "[json]": { + "editor.formatOnSave": false + }, + "[markdown]": { + "editor.trimAutoWhitespace": false, + "files.trimTrailingWhitespace": false }, "[python]": { - "editor.formatOnSave": true, - "editor.defaultFormatter": "ms-python.python" + "editor.defaultFormatter": "ms-python.python", + "editor.formatOnSave": true }, - "[css][json][jsonc][html][markdown][yaml]": { - "editor.formatOnSave": true, - "editor.defaultFormatter": "esbenp.prettier-vscode" - } + "C_Cpp.dimInactiveRegions": false, + "cmake.configureOnOpen": false, + "editor.insertSpaces": true, + "files.associations": { + "*.c": "c", + "*.cpp": "cpp", + "*.h": "c", + "*.hpp": "cpp", + "*.inc": "c", + "*.keymap": "dts", + "*.overlay": "dts", + "ranges": "c", + "type_traits": "c", + "utility": "c", + "xstddef": "c" + }, + "files.exclude": { + "**/*.bin": true, + "**/*.hex": true, + "**/*.uf2": true, + "**/.build": true + }, + "python.formatting.provider": "black" } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 080ffea6e65..f2881a24660 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,28 +1,91 @@ { - // 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", - "command": "cd app && west build", + "command": "/workspaces/zmk-config/scripts/build_docker.sh kyria_rev3_left nice_nano_v2", "group": { - "kind": "build", - "isDefault": true - } + "isDefault": true, + "kind": "build" + }, + "label": "Build kyria left", + "type": "shell" + }, + { + "command": "/workspaces/zmk-config/scripts/build_docker.sh kyria_rev3_right nice_nano_v2", + "group": { + "isDefault": true, + "kind": "build" + }, + "label": "Build kyria right", + "type": "shell" + }, + { + "command": "../zmk-config/scripts/build.sh ffkb_lite_v1 nice_nano_v2", + "group": { + "isDefault": true, + "kind": "build" + }, + "label": "Build ffkb_lite_v1", + "type": "shell" + }, + { + "command": "../zmk-config/scripts/build.sh bykeeb_left seeeduino_xiao_ble", + "group": { + "isDefault": true, + "kind": "build" + }, + "label": "Build bykeeb left", + "type": "shell" + }, + { + "command": "/workspaces/zmk-config/scripts/build_docker.sh bykeeb_right seeeduino_xiao_ble", + "group": { + "isDefault": true, + "kind": "build" + }, + "label": "Build bykeeb right", + "type": "shell" + }, + { + "command": "../zmk-config/scripts/build.sh pinkies_out_v3@3.0.0 vik_cirque_i2c", + "group": { + "isDefault": true, + "kind": "build" + }, + "label": "Build pinkies_out_v3", + "type": "shell" + }, + { + "command": "/workspaces/zmk-config/scripts/build_docker.sh settings_reset seeeduino_xiao_ble", + "group": { + "isDefault": true, + "kind": "build" + }, + "label": "Build xiao ble reset", + "type": "shell" + }, + { + "command": "/workspaces/zmk-config/scripts/build_docker.sh settings_reset nice_nano_v2", + "group": { + "isDefault": true, + "kind": "build" + }, + "label": "Build nice_nano_v2 reset", + "type": "shell" }, { - "label": "Flash", - "type": "shell", "command": "cd app && west flash", - "group": "test" + "group": "test", + "label": "Flash", + "type": "shell" }, { - "label": "Debug", - "type": "shell", "command": "cd app && west debug", - "group": "test" + "group": "test", + "label": "Debug", + "type": "shell" } - ] + ], + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0" } diff --git a/project.code-workspace b/project.code-workspace new file mode 100644 index 00000000000..b1c701bb325 --- /dev/null +++ b/project.code-workspace @@ -0,0 +1,69 @@ +{ + "extensions": { + "recommendations": [ + "spadin.zmk-tools", + "spmeesseman.vscode-taskexplorer" + ] + }, + "folders": [ + { + "path": "." + } + ], + "settings": { + "editor.formatOnPaste": false, + "files.associations": { + "**/requirements{/**,*}.{txt,in}": "pip-requirements", + "*.c": "c", + "*.cfg": "ini", + "*.code-workspace": "json", + "*.cpp": "cpp", + "*.h": "c", + "*.hpp": "cpp", + "*.inc": "c", + "*.json": "json", + "*.keymap": "dts", + "*.lock": "toml", + "*.overlay": "dts", + "*.sql": "sql", + "*.tcc": "c", + "*.toml": "toml", + ".env": "shellscript", + ".env.*": "shellscript", + ".gitchangelog.rc": "python", + ".pythonstartup": "python", + "Pipfile": "toml", + "array": "c", + "bit": "c", + "compare": "c", + "condition_variable": "c", + "cstddef": "c", + "functional": "c", + "limits": "c", + "list": "c", + "memory": "c", + "mutex": "c", + "new": "c", + "optional": "c", + "profile": "shellscript", + "ranges": "c", + "ratio": "c", + "rc": "shellscript", + "regex": "c", + "string": "c", + "system_error": "c", + "toml": "toml", + "tuple": "c", + "type_traits": "c", + "utility": "c", + "variant": "c", + "xstddef": "c" + }, + "vars": { + "zmk": "/workspaces/zmk", + "zmk_build": "/workspaces/zmk-config/scripts/build.sh", + "zmk_config": "/workspaces/zmk-config", + "zmk_modules": "/workspaces/zmk-modules" + } + } +}