About 1,280,000 results
Open links in new tab
  1. visual studio code - How do I get VSCode to recognize current …

    Create a jsconfig.json file to indicate a JavaScript project within vs code, just go to the bottom of vs code and click on green bulb icon. It will ask you to create jsconfig.json. Create jsconfig.json file which will contain the following code.

  2. JavaScript in Visual Studio Code

    To check if a JavaScript file is part of JavaScript project, just open the file in VS Code and run the JavaScript: Go to Project Configuration command. This command opens the jsconfig.json that references the JavaScript file.

  3. javascript - How to use @ts-check in VS Code across multiple …

    Dec 19, 2019 · Is there a way to tell the TypeScript compiler that all the JavaScript files are in global scope together, and to use the correct order of evaluation from the index.html? Use "js/ts.implicitProjectConfig.checkJs": true in VSC config (or // @ts-check in files) and reference other files with /// <reference path="[...]" />

  4. javascript - How to debug in VS Code by attaching to Edge …

    Jun 29, 2021 · I test with JavaScript Debugger v1.57.0 and Edge browser Version 91.0.864.59, it works well. Have you launched the page you want to debug in Edge first before you start to debug in VS Code? "request": "attach" means attaching the debug to an existing instance.

  5. VS Code - Get type checking in JavaScript easily - Rob O'Leary

    Aug 16, 2021 · VS Code allows you to leverage some of TypeScript’s advanced type checking and error reporting functionality in plain old JavaScript files. And you can even do some quick fixes! This can be done alongside ESLint without any issues.

  6. JavaScript Development with Type Checking in VS Code

    Oct 8, 2020 · The tsconfig.json file tells VS Code that this is a TypeScript project that allows JavaScript, too ("allowJs": true). Type checking for JavaScript files is enabled through "checkJs": true. The ES2015 options specify the minimum version of JavaScript supported in the project.

  7. VS Code supports JSDoc-powered type checking - Stefan Judis

    Mar 11, 2022 · There are multiple ways to leverage the JSDoc type information for type checking in VS Code. Let's have a look at how this works! Add a // @ts-check comment to your JavaScript files and see how VS Code parses your JSDoc type …

  8. Working with JavaScript - Visual Studio Code

    Using the TypeScript language service, VS Code can provide smart completions (IntelliSense) as well as type checking for JavaScript. Visual Studio Code's JavaScript IntelliSense provides intelligent code completion, parameter info, references search, and many other advanced language features.

  9. IntelliSense - Visual Studio Code

    Visual Studio Code IntelliSense is provided for JavaScript, TypeScript, JSON, HTML, CSS, SCSS, and Less out of the box. VS Code supports word-based completions for any programming language but can also be configured to have richer IntelliSense by installing a …

  10. Type checking global JavaScript libraries in VS Code for when …

    Apr 18, 2021 · Sometimes when you're prototyping and learning a new library you want a quick way to get type-checking/intellisense/auto-complete to assist with your learning. Here is a quick way to enable type checking without fully opting into TypeScript.

  11. Some results have been removed
Refresh