From 71f0205b13bdb2a2219276fcee6d2992326dfc33 Mon Sep 17 00:00:00 2001 From: vferraro-scottlogic Date: Thu, 16 Nov 2023 09:41:43 +0000 Subject: [PATCH 1/4] SLVUU-97 add workspace settings --- vuu-ui/.vscode/extensions.json | 5 +++++ vuu-ui/.vscode/settings.json | 23 ++--------------------- 2 files changed, 7 insertions(+), 21 deletions(-) create mode 100644 vuu-ui/.vscode/extensions.json diff --git a/vuu-ui/.vscode/extensions.json b/vuu-ui/.vscode/extensions.json new file mode 100644 index 000000000..0f148de5e --- /dev/null +++ b/vuu-ui/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "esbenp.prettier-vscode" + ] +} \ No newline at end of file diff --git a/vuu-ui/.vscode/settings.json b/vuu-ui/.vscode/settings.json index 804819a73..4557cef19 100644 --- a/vuu-ui/.vscode/settings.json +++ b/vuu-ui/.vscode/settings.json @@ -1,25 +1,6 @@ { - "workbench.colorCustomizations": { - "activityBar.activeBackground": "#a2b875", - "activityBar.activeBorder": "#4c7c93", - "activityBar.background": "#a2b875", - "activityBar.foreground": "#15202b", - "activityBar.inactiveForeground": "#15202b99", - "activityBarBadge.background": "#4c7c93", - "activityBarBadge.foreground": "#e7e7e7", - "sash.hoverBorder": "#a2b875", - "statusBar.background": "#8ba555", - "statusBar.foreground": "#15202b", - "statusBarItem.hoverBackground": "#6f8344", - "statusBarItem.remoteBackground": "#8ba555", - "statusBarItem.remoteForeground": "#15202b", - "titleBar.activeBackground": "#8ba555", - "titleBar.activeForeground": "#15202b", - "titleBar.inactiveBackground": "#8ba55599", - "titleBar.inactiveForeground": "#15202b99", - "commandCenter.border": "#15202b99" - }, - "peacock.color": "#8ba555", + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true, "typescript.tsdk": "node_modules/typescript/lib", "css.customData": [ "./.vscode/custom-css.json" From ee247bfaa6b7b169a6d4fcef6379e58b3901183f Mon Sep 17 00:00:00 2001 From: vferraro-scottlogic Date: Thu, 16 Nov 2023 09:52:47 +0000 Subject: [PATCH 2/4] SLVUU-97 update docs --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 6eff79e88..5fe428968 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,9 @@ mvn spring-boot:run 1. Follow steps 3-5 outlined in 'Configuring IntelliJ' below 2. Select 'LayoutServer' config and click run +### Workspace Settings +A set of VSCode settings is shared as workspace settings. In order to use the workspace settings the project needs to be opened in VSCode from vuu-ui/ folder + ## Configuring IntelliJ You may prefer to run the backend using the IntelliJ IDE, if so, you will need to follow the Client Installation above to ensure that the project has built correctly. From 48da3152513cfa3677395e6d649b82daf2f5a818 Mon Sep 17 00:00:00 2001 From: vferraro-scottlogic Date: Mon, 27 Nov 2023 11:57:30 +0000 Subject: [PATCH 3/4] SLVUU-97 mention settings covered --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5fe428968..7609f306d 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,13 @@ mvn spring-boot:run 2. Select 'LayoutServer' config and click run ### Workspace Settings -A set of VSCode settings is shared as workspace settings. In order to use the workspace settings the project needs to be opened in VSCode from vuu-ui/ folder +A set of VSCode settings is shared as workspace settings. In order to use the workspace settings the project needs to be opened in VSCode from vuu-ui/ folder. + +Settings provided by the workspace currently cover: + +- Prettier as default formatter + +When using an IDE other than VSCode, the IDE settings should be set to match the workspace settings ## Configuring IntelliJ From adaf58f6850d10b67136f28ffb33e409687002ab Mon Sep 17 00:00:00 2001 From: vferraro-scottlogic Date: Mon, 4 Dec 2023 15:56:12 +0000 Subject: [PATCH 4/4] SLVUU-97 add java configs to README --- README.md | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 7609f306d..ac1869513 100644 --- a/README.md +++ b/README.md @@ -67,15 +67,6 @@ mvn spring-boot:run 1. Follow steps 3-5 outlined in 'Configuring IntelliJ' below 2. Select 'LayoutServer' config and click run -### Workspace Settings -A set of VSCode settings is shared as workspace settings. In order to use the workspace settings the project needs to be opened in VSCode from vuu-ui/ folder. - -Settings provided by the workspace currently cover: - -- Prettier as default formatter - -When using an IDE other than VSCode, the IDE settings should be set to match the workspace settings - ## Configuring IntelliJ You may prefer to run the backend using the IntelliJ IDE, if so, you will need to follow the Client Installation above to ensure that the project has built correctly. @@ -101,6 +92,18 @@ npm run build 8. In IntelliJ, select 'SimulMain' config and click run 9. If you get a 'certificate-unknown' error, set 'Allow invalid certificates for resources loaded from localhost' to 'Enabled' in your chrome settings +### IntelliJ Settings + +In IntelliJ settings/Editor/Code Style/Java/Import Layout +- tick "Layout static imports separately +- apply the following order for imports + - import all other imports + - < blank line > + - import javax.* + - import java.* + - < blank line > + - import static all other imports + ## Installation - Client The UI scripts all run from the vuu/vuu-ui directory. @@ -130,6 +133,15 @@ Then, back in vuu-ui, run the launch script" npm run launch:demo:electron ``` +### VSCode Workspace Settings +A set of VSCode settings is shared as workspace settings. In order to use the workspace settings the project needs to be opened in VSCode from vuu-ui/ folder. + +Settings provided by the workspace currently cover: + +- Prettier as default formatter + +When using an IDE other than VSCode, the IDE settings should be set to match the workspace settings + ## Usage example ```