From 9761f22f0ce32b2a9f4d7cf76aac1798c92ab063 Mon Sep 17 00:00:00 2001 From: materus Date: Fri, 1 Nov 2024 22:51:06 +0100 Subject: [PATCH] Old-materusPC: vscode settings 4 --- .vscode/settings.json | 5 ++++- .../host/Old-materusPC/home/materus/default.nix | 12 +++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index a5a5a12..1c56df3 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,6 @@ { - "nixEnvSelector.suggestion": false + "nixEnvSelector.suggestion": false, + "files.associations": { + "iostream": "cpp" + } } \ No newline at end of file diff --git a/configurations/host/Old-materusPC/home/materus/default.nix b/configurations/host/Old-materusPC/home/materus/default.nix index 2a8c4b1..2190cec 100644 --- a/configurations/host/Old-materusPC/home/materus/default.nix +++ b/configurations/host/Old-materusPC/home/materus/default.nix @@ -32,11 +32,14 @@ "nix.serverPath" = "${pkgs.nixd}/bin/nixd"; "nix.formatterPath" = "${pkgs.nixfmt-classic}/bin/nixfmt"; - "clang-format.executable" = "${pkgs.clang-tools}/bin/clang-format"; - "clang-tidy.executable" = "${pkgs.clang-tools}/bin/clang-tidy"; - - "python.defaultInterpreterPath"= "${pkgs.python3Full}/bin/python"; + "C_Cpp.clang_format_path" = "${pkgs.clang-tools}/bin/clang-format"; + "C_Cpp.clang_format_fallbackStyle" = "Microsoft"; + "clang-tidy.executable" = "${pkgs.clang-tools}/bin/clang-tidy"; + "python.defaultInterpreterPath" = "${pkgs.python3Full}/bin/python"; + "[cpp]" = { + "editor.defaultFormatter" = "xaver.clang-format"; + }; }; materus.profile = { @@ -59,7 +62,6 @@ open-vsx.twxs.cmake vscode-extensions.ms-vscode.cpptools vscode-marketplace.ms-vscode.cmake-tools - open-vsx.xaver.clang-format vscode-marketplace.cs128.cs128-clang-tidy #Python