You can download the extension pack from the VS Code Marketplace: Unsure which extensions to recommend to your students? You can point your students to the Node.js and JavaScript Education Extension Pack that contains essential and helpful extensions for the classroom. Thank you Charles for sharing your experiences and favorite VS Code settings! If you're interested in using VS Code for your Node.js web development classes, you can get started with the Node.js and JavaScript Education Extension Pack that contains Charles' favorite extensions, extensions for real-time collaboration, and more! Node.js and JavaScript Extension Pack You can use his settings by editing the settings file and pasting these in: These extensions are also part of the Node.js and JavaScript Education Extension Pack below! Classroom settingsĪnd here are his recommended settings, which help his students have consistent formatting of their code to make his life reviewing and grading their work that much easier. Vetur - Vue.js framework support for syntax highlighting, code completion, and more! This helps students focus on their Vue.js code rather than getting stuck solving syntactical errors.
http files and simplify manual API testing within VS Code. TabNine - Longer AI-driven code-snippets helps non-native English speakers avoid code-breaking typos and reduces the impact of slow typing.ESLint - His favorite! Auto-formatting keeps students focused on program logic and linting helps them quickly find, understand, and fix errors in their JavaScript code.The extensions he likes to have installed: This customized folder structure can be quickly copied to every lab machine without needing to run installers, download additional files, or manually configure each machine. He prepares a single "image", available on GitHub, containing his favorite extensions, settings, and cached versions of some libraries.
VS Code is great for Charles because it has a portable mode, which stores all of VS Code's application data in one location. VS Code is the first choice of web professionals, so it’s the first choice for my class!" Portable setup I am not just teaching code I'm also teaching the tools, tactics, and teamwork my students will need to start building for themselves. "The more realistic the learning environment, the more comprehensive the education. Why Visual Studio Code?Ĭharles has been using Visual Studio Code to teach for the past four years. He teaches a project-based Web Development course, where students build a TypeScript app using the Vue.js framework and Firebase platform. Intro to Web Development at Naresuan UniversityĬharles Allen is a lecturer at Naresuan University in Thailand, where he teaches several Computer Science and Business courses. It is easily customizable and has a rich ecosystem of extensions to help your students learn Node.js and JavaScript.īelow is a case study of a Computer Science educator in Thailand and includes his recommendations for VS Code extensions and settings in the classroom.
Visual Studio Code is the most popular free code editor among JavaScript developers around the world according to the State of JS 2020 survey. The debugger will be set focus automatically once the breakpoint is and JavaScript in Visual Studio Code Use Postman app or other tools to send a HTTP request to your API. Choose the one for your API.Īs soon as a debugging session starts, the DEBUG CONSOLE panel is displayed and shows debugging output, and the Status Bar changes color (orange for default color themes). The Debugger shows the list of detected Node.JS processes in your computer. Use “npm run start” start your API server.
Click Add Configuration button.Ĭhoose the newly created launch configuration from the droplist of DEBUG button. VS Code will try to automatically detect your debug environment. Select the Configure gear icon on the Debug view top bar. Open your project folder in VS Code (File > Open Folder). VS Code keeps debugging configuration information in a launch.json file. In order to configure and save debugging setup details, you need to create a launch configuration file.
This article describes the steps about how to debug a REST API developed in Node.JS in Visual Studio Code in local computer. VS Code has built-in debugging support for the Node.js runtime and can debug JavaScript, TypeScript, or any other language that gets transpiled to JavaScript.