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 that I can develop my hybrid application in the same IDE without switching time.

Problem: Android Studio is based on the 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 have not yet found a plug-in for supporting the most basic JavaScript in either Android Studio or IntelliJ IDEA CE.

Does anyone have a working JavaScript plugin for Android Studio (no fancy stuff, only a basic code extension is required) or another way to add support for using JavaScript libraries to complete the code?

EDIT:

The existing answer to the question related in the comments does not solve my problem as I found this on the IntelliJ help page for FileWatchers:

JavaScript files generated by file observers are excluded from code completion and refactoring.

As the execution of JavaScript code is critical to my plugin, I'm still looking for a solution. Another problem is that I need to find a way to β€œexport” my changes (hopefully as a plugin) so that others can import and use it.

Any ideas on this?

+6
source share
3 answers

I am afraid that (at present) you cannot get JavaScript support in Android Studio. I did not find any community plugins that could be used in Intellij Idea CE (and therefore Android Studio). The only option you have is setting up multiple IDEs; use WebStorm for JavaScript and Android Studio for Android.

+2
source

Peter Schmalfeld created a repo to access it here:

https://github.com/manifestinteractive/android-studio-filetypes

Just follow the repo instructions that I quote here:

From the Android Studio menu, go to File β†’ Import Settings ... Find the settings.jar file from this repository In the "Select components to import" section, make sure you have "File Types", and then click OK

+1
source

<sub> 1. just copy all the plugins and configurations from the IntelliJ IDEA folder (free community version) into the folder and paste it into Android-Studio, rather than overriding existing ones, some useful things worked for me, such as PHP debugging, now mine goto editor (.. wellllll ... Notepad ++ ... wellllll ... Notepad2 then Nodepad ++)

2. Open AS .. S , select Invalidate Cache And Restart from the File menu.
3. Done.
4.?
5. Profit.
Sub>

0
source

All Articles