We recommend using Visual Studio Code (vscode). It's easy to use and configure and it's currently the most popular editor, which means you can find help easily if something goes wrong.
There are a lot of fancy features you'll pick up as you go. Here are the important ones:
File -> Open
This will save files automatically without you having to save them manually. Turn this on it will save you from thinking your code is broken when actually you just haven't saved it!
If you open a folder, you can quickly navigate to files
Ctrl + p
or Ctrl + e
Cmd ⌘ + p
Ctrl + p
or Ctrl + e
inde
to find index.html
. enter
to open the file.Prettier is a tool which formats your (Javascript and HTML) code perfectly every time, try it and see. It's insanely good, you should use it whilst you're learning.
Visual Studio Code has a a prettier plugin you can install.
Editor: Format on save
as true (if you want to format whenever your code is saved)Editor: Format on paste
as true (if you want to format whenever code is pasted in)Prettier: Print Width
as 120
Prettier: Semi
to false (no semi-colons for us!)Properly formatted code helps you spot mistakes more easily, so this will help you a lot.
This isn't super important, but probably worth a quick look at the keyboard shortcuts.
If you prefer to use your own editor, that's completely fine! There are a bunch of great editors.