This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 101465 - Editor doesn't seem to add for syntax on ctrl + space
Summary: Editor doesn't seem to add for syntax on ctrl + space
Status: RESOLVED DUPLICATE of bug 101464
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-17 22:09 UTC by Chary Kanaparthi
Modified: 2007-07-03 14:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chary Kanaparthi 2007-04-17 22:09:32 UTC
- Create ruby script, type "for ctrl + space" , you should see possible
selectable options, select for and hit Enter, for syntax should be added to at
cursor position, not happening so...
Comment 1 Torbjorn Norbye 2007-04-17 22:22:26 UTC
This is not a defect - we simply don't have a code template for for-loops, or indeed many of the other 
possible looping constructs in Ruby. We do for if - that's why it's showing up in code completion. 

It would be great to get a set of comprehensive code templates. The TextMate bundle importer might offer 
a good start.
Comment 2 Torbjorn Norbye 2007-04-17 22:24:32 UTC
Just to clarify: The "for" entry you -do- see in code completion is simply keyword completion - that's why 
it only inserts for. All the Ruby keywords are there for completion. For if you see not only the Ruby "if" 
keyword, but a code template for if as well. This is what we're missing for for and various other looping 
constructs.

*** This issue has been marked as a duplicate of 101464 ***
Comment 3 Jiri Kovalsky 2007-07-03 13:58:10 UTC
Reassigning this issue to newly created 'ruby' component.
Comment 4 Jiri Kovalsky 2007-07-03 14:41:57 UTC
Changing target milestone of all resolved Ruby issues from TBD to 6.0 Beta 1 build.