Sadly Atom editor will be gone in 6 months
I looked at both Eclipse editor which is open source and Visual Studio Code
- Both are free
- Both are good
- Decided to try Visual Studio Code first even though I don't like giving business to giant software companies.
- The main reason I decided on VSC is because every video I watch on 11ty or nunjucks the developer is using Visual Studio as their editor.
Download Visual Studio Code
https://code.visualstudio.com/download
- downloads a zip file
- Expand zip file and there is one file which is Visual Studio Code
- On OSX drag Visual Studio Code to Applications folder
- Open Visual Studio Code, opened my Sites/11tyAHS folder and started editing
- So far Visual Studio Code is very similar to Atom. command-S to save
- HTML intellesense and beautify is built in, the command to prettify format the HTML and other code is Shift - option - F to beautify
- Nunjucks is not built in but when you open a .njk file and then press the key combination Shift | Option | F at the same time VSC will ask you if you want to look for a nunjucks formatter which I installed. It works.
- Same with markdown .md file. When editing a .md markdown file and I press the 3 keys Shift | Option | F I get a dialog box that says
There is no formatter for 'markdown' files installed.
Install Formatter ...
-
I clicked on Install Formatter ...
-
It opens the Visual Studio Code Marketplace
-
There are a bunch of choices.
-
I picked Markdown All in One because it has 5.2 million intstalls and is rated a 5 out of 5 stars
-
It installs itself.
-
So far Visual Studio Code is OK.