Aptana Studio 2 - Code Assist for JS not working

My problem is somewhat strange. I started developing a web page using Aptana Studio build 2.0.5.1278522500. Everything went well until the moment when I wanted to start writing JavaScript in a separate .js file - there is no code support there. In the settings that he allowed, and - which is the weird part - it works fine in .html files (when typing code in a script tag). The only thing that can remotely say something is wrong is the fact that when I type, say, “document” and hit '.', The cursor disappears to split the second.

Has anyone had the same problem? Is there any solution? I would really like to help the code for JS, without this Aptana will lose it a little.

+3
source share
4 answers

I found the answer to my question, I will post it, because maybe this will help someone. To get help with the code, I simply changed the default editor file for .js files from the JavaScript editor to the Aptana JS editor (Preferences-> General-> Editors-> File Associations, then selected * .js in the top list and Aptana JS Editor in the bottom list, then click the "Default" button). Now it works like a charm.

+1
source

CodeMonkey, Aptana Stuidio 3. : (Preferences- > General- > Editors- > File Associations). js , 3 JavaScript Source Editor. save JavaScript ( ). .

+2

Aptana 3 Studio. , Aptana JS Editor 3. , , , .

+1

.js Aptana .

, jquery ()., , , $(). ,

$ = jQuery;

at the beginning of my .js file, thus declaring $ as the equivalent of a jquery function.

When writing Javascript code in an HTML editor, you do not need to do this because you have included the jQuery link at the top, which has the above parameter ($ = jquery).

0
source

Source: https://habr.com/ru/post/1775690/


All Articles