This topic contains 4 replies, has 0 voices, and was last updated by netsuk 12 years ago.
-
AuthorPosts
-
June 19, 2012 at 11:54 am #4855
pactonWithin SuiteCloud IDE – “Enable auto activation” ticked in preferences->Content Assist — code assist is not automatically invoked? Shift + Space does work. With my other Eclipse install with Aptana plugin auto-activation works on the content assist? Am I missing something here?
This is a cached copy. Click here to see the original post. -
June 19, 2012 at 5:11 pm #4856
August LiThe new SuiteCloud IDE is not based on Aptana, so expect the behavior to be different, it is based on the JavaScript Development Tools plugin which is the JavaScript plugin shipped with Eclipse.
In Aptana, auto completion is triggered when you type in any character (default).
In JSDT, the default is to press “ctrl-space” and auto activation is only triggered when you type in a period (“.” which is used for triggering auto completion of object properties/methods). You can modify the trigger character under Preferences->JavaScript->Editor->Content Assist, “Auto activation triggers for JavaScript” (which defaults to “.”), unfortunately, JSDT limits the trigger characters under the preferences to four.
For example, you can set the following:
Auto activation delay: 0
Auto action triggers for Javascript: .nfo
(choose the 4 trigger characters that activates auto completion; e.g. adding “n” will trigger all nlapi* functions)
If four characters are not enough for you, a workaround to add more than four characters in JSDT is to directly edit the JSDT configuration file. Look for the JSDT configuration file under “/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.wst.jsdt.ui.prefs” and add or replace the following lines:
Code:
content_assist_autoactivation_delay=0
content_assist_autoactivation_triggers_java=.abcdefghijklmnopqrstuvwxyz
You would need to do the above for each of your workspace. Again, JSDT is not Aptana, so it is not the same behavior but that’s the closest you can get to auto activation in JSDT. I don’t recommend you add all the alphabets as trigger characters unless your computer is fast.I should also add that code completion for internal ids will only work in the JSDT editor and not in the Aptana editor.
-
June 20, 2012 at 9:51 am #4857
coreyRE: Content Assist -> Auto-Activation not working
Nice hack. The four characters thing was bugging me a little.
-
October 23, 2012 at 10:17 am #4858
coreyBy the by, I have gotten the Aptana Studio 3 and it’s code completion to work with the SuiteCloud IDE. I can’t recall the steps I took to get it to work, but if you tweak enough with it you can get code completion to work with the ‘as you type’ action of the stand alone Aptana Studio.
-
October 24, 2012 at 3:58 am #4859
netsukRE: Content Assist -> Auto-Activation not working
Originally posted by August Li
View Post
The new SuiteCloud IDE is not based on Aptana, so expect the behavior to be different, it is based on the JavaScript Development Tools plugin which is the JavaScript plugin shipped with Eclipse.
In Aptana, auto completion is triggered when you type in any character (default).
In JSDT, the default is to press “ctrl-space” and auto activation is only triggered when you type in a period (“.” which is used for triggering auto completion of object properties/methods). You can modify the trigger character under Preferences->JavaScript->Editor->Content Assist, “Auto activation triggers for JavaScript” (which defaults to “.”), unfortunately, JSDT limits the trigger characters under the preferences to four.
For example, you can set the following:
Auto activation delay: 0
Auto action triggers for Javascript: .nfo
(choose the 4 trigger characters that activates auto completion; e.g. adding “n” will trigger all nlapi* functions)
If four characters are not enough for you, a workaround to add more than four characters in JSDT is to directly edit the JSDT configuration file. Look for the JSDT configuration file under “/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.wst.jsdt.ui.prefs” and add or replace the following lines:
Code:
content_assist_autoactivation_delay=0
content_assist_autoactivation_triggers_java=.abcdefghijklmnopqrstuvwxyz
You would need to do the above for each of your workspace. Again, JSDT is not Aptana, so it is not the same behavior but that’s the closest you can get to auto activation in JSDT. I don’t recommend you add all the alphabets as trigger characters unless your computer is fast.I should also add that code completion for internal ids will only work in the JSDT editor and not in the Aptana editor.
Thanks for sharing this, worked like a charm
-
AuthorPosts
You must be logged in to reply to this topic.