How to get VS Code to understand JSDOC’s @typedef across multiple files

I’ve had some success with using jsconfig.json and its include property in a plain JavaScript project in Visual Studio Code 1.33.1 { “include”: [ “src/**/*.js” ] } Given the following JavaScript project: src/ ├── types/ | ├── person.js | ├── question.js | ├── answer.js ├── jsconfig.json Where both question.js and person.js are type definitions: person.js … Read more

Visual Studio Code: running preLaunchTask with multiple tasks

Here is something that will work. Basically you make another task in which you include all the other tasks that you want to run on your preLaunchTask with the dependsOn keyword. Code for reference: “tasks”: [ { “label”: “CleanUp_Client”, “type”: “shell”, “command”: “rm”, “args”: [ “-f”, “Client” ] }, { “label”: “Client_Build”, “type”: “shell”, “command”: … Read more

Cut line shortcut in Visual Studio Code (Ctrl+L in VS) (not delete line!)

What you are looking for is the Cut command: editor.action.clipboardCutAction It cuts (copies to the clipboard then deletes the line) either a selection or the entire line if nothing is selected. I tested it with vscode 1.23.1 On windows this command is bound to Ctrl + X as well as to Shift + Delete by … Read more

How to fix “File ‘…/node_modules/dotenv/types’ not found.” error coming from jsconfig.json?

I had the same issue. Restarting VSCode solved the problem. See: https://github.com/motdotla/dotenv/issues/475 Edit: this seems to be an issue with the contents of dotenv’s package.json. There’s an open PR, but the author hasn’t replied/merged yet at this time. Link: https://github.com/motdotla/dotenv/pull/476 Edit 2: This should now be fixed! dotenv v8.4.0 fixes this issue. See https://github.com/motdotla/dotenv/releases/tag/v8.4.0.