Key Takeaways: #
- Download and Install Node.js: Choose the LTS version for stability. During installation, check the box to install tools for native modules and Chocolatey.
- Test Node.js: Use in the command prompt to access the REPL (read-eval-print loop) for testing code snippets.
- Visual Studio Code Setup: Download and install Visual Studio Code. Utilize the command in your terminal to open Visual Studio Code in the current directory.
- Visual Studio Code Features: Explore features like integrated terminal, font size control, search and replace, source control integration, debugging tools, and extensions.
Downloading and Installing Node.js #
- Download the LTS version of Node.js from nodejs.org.
- During installation:
- Leave the default installation location.
- Check the "Tools for Native modules" checkbox to install necessary tools.
- This will also install Chocolatey, a package manager.
Testing Node.js #
- Open a command prompt or Powershell.
- Type and press enter. This will open the Node.js REPL.
- Use the REPL to test code snippets, perform basic arithmetic, and import/test modules.
Setting Up Visual Studio Code #
- Download and install Visual Studio Code from code.visualstudio.com.
- Use the command in the terminal to open Visual Studio Code in your current directory.
- Right-click within a folder while holding the Shift key and select "Open with Code" to open Visual Studio Code in that folder.
Visual Studio Code Features #
- Terminal: Open an integrated terminal within Visual Studio Code to run commands directly.
- Font Size: Use Ctrl + (+) to increase font size and Ctrl + (-) to decrease font size.
- Search & Replace: Search for text across multiple files and perform replacements.
- Source Control: Integrate with Git for version control. Track changes, commit, and push code.
- Debugging: Utilize the built-in debugger for Node.js. Set breakpoints, inspect variables, and control code execution.
- Extensions: Install extensions to add functionality for different languages and frameworks. Explore the Node.js related extensions in the Visual Studio Code marketplace.
Summary for: Youtube