Nguyen Quoc Dat
Nguyen Quoc Dat

Reputation: 201

Auto format javascript code in Android Studio

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:

  1. import CSS & JavaScript file types: https://github.com/manifestinteractive/android-studio-filetypes.

  2. installed JS toolbox plugin.

Upvotes: 8

Views: 2418

Answers (1)

Antonin GAVREL
Antonin GAVREL

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

Related Questions