About 598,000 results
Open links in new tab
  1. node.js - Run JavaScript in Visual Studio Code - Stack Overflow

    Aug 3, 2015 · Is there a way to execute JavaScript and display the results using Visual Studio Code? For example, a script file containing: console.log('hello world'); I assume that Node.js …

  2. How do I run JavaScript code in Visual Studio Code?

    Mar 3, 2021 · Create a new folder and open it in VS Code. then write the javascript code and name it with extension .js After completing the code save the changes that you made. Open …

  3. How to run html & javascript in VS Code - Stack Overflow

    Dec 28, 2020 · Run this command in terminal inside project folder to initialize project with npm init -y. Add lite-server to your devDependencies with npm install lite-server --save-dev. Add start …

  4. How to Debug JavaScript in Visual Studio Code with live-server …

    Oct 26, 2017 · Install and activate Live Server extension on your VS Code. Press F5 and select Chrome: Check your Live Server port* and change the generated launch.json; Set your break …

  5. How to run JavaScript code in VSCode's terminal? [duplicate]

    Feb 26, 2020 · After installation in VSCode under terminal tab run node Paste your snippet to run your javascript code or use node filepath/filename.js to see result. Share Improve this answer

  6. visual studio code - A JavaScript error occurred in the main …

    Jul 2, 2022 · Cannot find module 'C:\Program Files\Microsoft VS Code\resources\app\out\main' #137303. Possibly caused by antivirus. Error: Cannot find module 'C:\Program Files\Microsoft …

  7. VSCode: Cannot Seem to Find Run Button to Run Javascript Code

    May 6, 2019 · When done, I now have the run button back, as shown below. Since I have a Python file open, if I hover over it, mine says "Run Python File". References. I first learned …

  8. 'Run code' is not working in Visual Studio Code - Stack Overflow

    May 16, 2019 · Type in search box 'Code Runner' Install the extension (top most with over 2.5M downloads) Restart VS Code; then go to: File > Preferences > Settings; Type 'code runner' in …

  9. Is there a way to run javascript in VSCode without Node.js?

    Sep 16, 2023 · The short answer would be no (in VS Code). Javascript needs a runtime environment to be executed, like Node JS, or V8 engine in Chrome Browser. Alternative …

  10. How do I debug HTML and JavaScript together in VSCode (Visual …

    Jun 26, 2015 · There is a vscode plugin called "Microsoft Edge Tools for VS Code" that offers the possibility to open a web page as a vscode tab with dev tools integrated. Or one could try the …

Refresh