Why VS Code?
VS Code is the most popular editor for JavaScript development. It has built-in JavaScript support, a huge extension ecosystem, and an integrated terminal where you’ll run your code. If you’re already using VS Code for Python, you just need a few extra extensions.Essential extensions
Install these two extensions from the VS Code Extensions panel (Ctrl+Shift+X / Cmd+Shift+X):
ESLint
Catches JavaScript errors and enforces code style as you type. It underlines problems in red and yellow so you can fix them before running your code.Search for: ESLint by Microsoft
Keyboard shortcuts worth knowing
You don’t need to memorize these now. Come back to this list when you’re writing more code.| Shortcut (Mac / Windows) | What it does |
|---|---|
Cmd+P / Ctrl+P | Quick open file by name |
Cmd+Shift+P / Ctrl+Shift+P | Command Palette |
Cmd+D / Ctrl+D | Select next occurrence of current word |
Option+Up/Down / Alt+Up/Down | Move line up or down |
Cmd+/ / Ctrl+/ | Toggle line comment |
Ctrl+` | Toggle integrated terminal |
Cmd+B / Ctrl+B | Toggle sidebar |
What’s next?
Your editor is ready. Let’s create your first JavaScript file and run it.Your first JavaScript file
Create and run your first JavaScript program