Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[orion-dev] JavaScript content assist

I have been releasing some small incremental improvements to our _javascript_ content assist. No fancy type inferencing, just little things that make life easier for developers.  The main thing added so far is completion of templates for common control structures (if/for/do/while/switch/try). For example, "f<ctrl-space>" will offer "iterate over array" or "for..in traversal". Select the array template and you get:

for (var i = 0; i < array.length; i++) {
               
}


Use tab to traverse between the fields to be completed, and 'Enter' to complete the proposal and arrive inside the loop body (exactly like Eclipse desktop). To be honest this was my biggest motivation - writing for loops by hand after using Eclipse for so long was very painful. I have already been finding it very useful so hopefully it helps others out too. This is available in today's build currently running on orion.eclipse.org. Please give it a try and report bugs and enhancement suggestions.

John

Back to the top