From 00f142ec7ebea22bed94f0ced3c18552dbbd40d9 Mon Sep 17 00:00:00 2001 From: TrueMilli <61841994+TrueMilli@users.noreply.github.com> Date: Fri, 3 Jun 2022 21:17:31 +0200 Subject: [PATCH] vscode settings (#409) * vscode settings * Working debugger config --- .vscode/launch.json | 37 +++++++++++++++---------------------- .vscode/settings.json | 11 ++++++++++- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index c35acf8d..d832421b 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,23 +1,16 @@ { - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "chrome", - "request": "launch", - "name": "Launch Chrome against localhost", - "url": "http://localhost:3000", - "webRoot": "${workspaceRoot}" - }, - { - "type": "chrome", - "request": "attach", - "name": "Attach to Chrome", - "port": 9222, - "urlFilter": "http://localhost:3000/*", - "webRoot": "${workspaceFolder}" - } - ] -} \ No newline at end of file + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Attach to Chrome", + "type": "chrome", + "request": "attach", + "port": 9222, // chrome needs to be started with the parameter "--remote-debugging-port=9222" + "urlFilter": "http://localhost:3000/*", + "webRoot": "${workspaceFolder}/web" + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json index e262c75c..7819cbe0 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,13 @@ { "javascript.preferences.importModuleSpecifier": "shortest", - "typescript.preferences.importModuleSpecifier": "shortest" + "typescript.preferences.importModuleSpecifier": "shortest", + "files.eol": "\r\n", + "search.exclude": { + "**/node_modules": true, + "**/package-lock.json": true, + "**/yarn.lock": true + }, + "editor.formatOnSave": true, + "editor.formatOnPaste": true, + "editor.defaultFormatter": "esbenp.prettier-vscode" }