You can use any text editor to work on graphics, but we recommend Visual Studio Code for three major features built in to VS Code:
VS Code is available for free download here.
VS Code allows you to install extensions that add additional features to your editor. We recommend the following:
With the ESLint extension installed, your editor can automatically fix minor issues and formatting in your JavaScript code whenever you save a file. Here's how to get it working:
From the menu, open Code > Settings, search "eslint" in the search bar and click the "ESLint" settings under Extensions.
Set the Eslint › Code Actions On Save: Mode
setting to "all".
Now search "save" in the Settings search bar and under Editor: Code Actions On Save
click to "Edit in settings.json".
Hand edit the editor settings for codeActionsOnSave
and formatOnSave
to be these values:
{
// ...
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.fixAll": true
},
"editor.formatOnSave": true,
// ...
}
Now ESLint will fix formatting and style issues in your code on save, including indentation, const vs. let declarations, semicolon use and more.