Add support for Prettier JS formater

javascript
#1

Hi, support for Prettier would be great in my opinion.

Thanks for this great service.

Cheers

0 Likes

#2

You can configure that in project settings see the second part of Keybinding a terminal command?

0 Likes

#3

Just for people who come after me.

I added

prettier --write "$file"

Under Preferences -> Project -> JavaScript Support -> Custom Code Formatter

Activated “Format Code on Save”

Disabled “Use Build-in JSBeautify as Code Formatter”

And got the error that prettier can’t be found.

I had to restart my Cloud9 EC2 instance after the change, then it worked.

0 Likes