From 1a5a1e694de96886b7e75bd40225241d34d4d2f0 Mon Sep 17 00:00:00 2001 From: Indu Prakash Date: Fri, 28 Oct 2022 06:11:20 -0500 Subject: [PATCH] Added Prettier for JavaScript formatting --- .vscode/extensions.json | 7 ++++--- .vscode/settings.json | 5 ++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 5a9a3973b..09744810c 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,5 +1,6 @@ { - "recommendations": [ - "ms-vscode.cpptools" - ] + "recommendations": [ + "ms-vscode.cpptools", + "esbenp.prettier-vscode" + ] } \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 7fa9d6216..d9094df0b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -12,5 +12,8 @@ "editor.insertSpaces": false, "editor.tabSize": 4, "editor.detectIndentation": false, - "C_Cpp.clang_format_fallbackStyle": "{ BasedOnStyle: LLVM, UseTab: Always, IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Attach, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false, ColumnLimit: 0, AccessModifierOffset: -4, NamespaceIndentation: All, FixNamespaceComments: false }" + "C_Cpp.clang_format_fallbackStyle": "{ BasedOnStyle: LLVM, UseTab: Always, IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Attach, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false, ColumnLimit: 0, AccessModifierOffset: -4, NamespaceIndentation: All, FixNamespaceComments: false }", + "prettier.tabWidth": 4, + "prettier.useTabs": true, + "prettier.printWidth": 120 } \ No newline at end of file