π οΈ Setting Up the Environment With All Options.
π οΈ Setting Up the Environment With All Options.
π Steps to Download & Configure VS Code for JavaScript π»βοΈπ₯β¨
1οΈβ£ Download VS Code
1- Go to the official site π https://code.visualstudio.com
2- Click Download.
- Choose the installer for your OS:
- Windows (.exe)
- macOS (.dmg)
- Linux (.deb / .rpm / tar.gz)
3- Run the installer and follow the setup wizard.
- On Windows: check "Add to PATH" and "Add βOpen with Codeβ to Explorer" for easier access.
2οΈβ£ Open VS Code
- Launch VS Code after installation.
- Youβll see the Welcome Screen with options to create a file or open a folder.
3οΈβ£ Install Useful Extensions (Optional but Recommended)
Open the Extensions Marketplace (left sidebar, or press Ctrl+Shift+X / Cmd+Shift+X):
- JavaScript (ES6) Code Snippets β handy shortcuts.
- Prettier β Code Formatter β auto-formatting.
- Live Server β launches a local development server and auto-refreshes browser.
4οΈβ£ Configure VS Code Settings (Optional)
- Open Settings (
Ctrl+,/Cmd+,). - Common tweaks:
- Enable Format on Save.
- Set default formatter to Prettier.
- Adjust font size or theme for comfort.
5οΈβ£ Install Node.js
- Go to https://nodejs.org.
- Download the LTS (Long-Term Support) version.
- Install it β this also installs the Node Package Manager (npm).
- To verify installation open VS Code:
- Open a terminal and type:
node -v
- (You should see a version number, e.g.,
v22.18.0.)
β Summary
- Download VS Code β install for your OS.
- Install extensions like JavaScript (ES6) Code Snippets, Live Server and Prettier.
- Configure VS Code Settings like Format on Save, default formatter to Prettier, Adjust font size or theme for comfort.
- Install NodeJS to be able to run JS code outside Browser.
- Your are ready !
π Now your system is fully set up for JavaScript development in VS Code π.
π Recommendation: Use DevTools for quick testing, and VS Code for projects.
π In the coming lessons will learn how to write your first code and discuss 3 options to run JavaScript.
3 comments