๐ ๏ธ 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.
0 comments