Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaScript functionality for Android Studio

See edit below.

I want to add code completion and syntax highlighting for a custom JavaScript library in Android Studio so I can develop my hybrid app within one IDE without switching all the time.

The problem is: Android Studio is based on IntelliJ IDEA Community Edition. Therefore it does not support JavaScript out of the box as this is a feature of their Ultimate Edition. So far I haven't found any plugin yet to support the most basic JavaScript neither in Android Studio nor in IntelliJ IDEA CE.

Does anyone have either a working JavaScript plugin for Android Studio (no fancy stuff. only basic code completion needed) or another possibility to add suport for using JavaScript libraries for code completion?

EDIT:

The existent answer to the question linked in the comments does not solve my problem as I found this on IntelliJ's help page for FileWatchers:

JavaScript files generated by File Watchers are excluded from code completion and refactoring.

As JavaScript code completion is crucial to my plugin, I'm still searching for a solution. An additional problem is, that I have to find a way to "export" my changes (hopefully in form of a plug-in) so others can import and use it.

Any ideas on that?

like image 374
Niklas Avatar asked Nov 18 '15 14:11

Niklas


1 Answers

I'm afraid there is (currently) no way you can get JavaScript support in Android Studio. I didn't find any community JavaScript plugins which could be used in the Intellij Idea CE (and, therefore, Android Studio). The only option you have is multi-IDE setup; use WebStorm for JavaScript and Android Studio for Android.

like image 101
aga Avatar answered Nov 03 '22 23:11

aga