Reputation: 201
Android studio allows to auto format HTML code but not JavaScript. Is there anyway i can achieve such thing? I already looked for plugins and file types, but it seems like nothing really helped.
what i have already tried:
import CSS & JavaScript file types: https://github.com/manifestinteractive/android-studio-filetypes.
installed JS toolbox plugin.
Upvotes: 8
Views: 2418
Reputation: 11219
I was looking for the answer and ended up installing Visual Studio in order to "beautify" the code. No need for extensions, you select your file and use CTRL+SHIT+I
and CTRL+S
to auto format JS code.
Upvotes: 0