Intellisense like WebIDE?

JetBrains guys,

I've had a play with the WebIDE app. It looks good. I particularly like the html and javascript intellisense; Will we be seeing this is a future version of Rubymine?

Rob

6 comments
Comment actions Permalink

Hi Rob,

Actually the HTML and JavaScript editing features in RubyMine and in Web IDE should be identical. These are the core features that come from IntelliJ IDEA platform.
Do you see any differences when you try? Note that you may need to use RubyMine 1.5 EAP to compare because RubyMine 1.1 is based on an older platform version.

Hope it helps,
-Eugene

0
Comment actions Permalink

Hi Eugene,

I've just investigated a bit further and discovered that I'm actually getting intellisense for plain *.html but not for *.html.erb file. I'm pretty new to Rubymine (very nice product btw) so never noticed this before. For me it's the same in both v1.1 and 1.5. Is there a switch somewhere to turn on intellisense for html.erb files or am I mis-understanding something?

Thanks, Rob

0
Comment actions Permalink

At first your file should have extension *.html.erb.

Is there a switch somewhere to turn on intellisense for html.erb files or am I mis-understanding something?

Is you ruby application is Rails application?

0
Comment actions Permalink

Hi Roman, Yep this is a Rails app. In this instance the *.html.erb file is a View associated with a Controller. To describe the progress:-

1. Set to project to Rail view.
2. Right click and create a Controller.
3. Right click (the created Controller) and create a new RHTML file and name the View after the controller, ie. 'mycontroller.html.erb'
4. Open the new View to see its markup. Create some test html; No intellisense is apparant.

5. Now create a regular HTML file.
6. Open the file and enter the same test html markup used previously; This time intellisense is apparant.

I'm currently using v1.1 on Ubuntu 9.04.

Hope this helps, Rob

0
Comment actions Permalink

4. Open the new View to see its markup. Create some test html; No intellisense is apparant.

Which intellisense is missed? Please provide some example.

I've created empty rails application (rails 2.3.2) and ran Scaffold generator with parameters "Person name:string age:integer". Let's open views/people/index.html.erb

Screen shot 2009-08-25 at 13.34.10.png

0
Comment actions Permalink

OK, I've had another play-around. Contrary to what i said initially the Javascript intellisense seems to be working ok in *.html.erb files (I'm sure it wasn't before). I'm also getting the intellisense as per your demo if I hit ctrl-space. What I'm not getting is the intellisense that appears wiith prompts for the html tag attributes, for example in your example when I hit the space after the 'e' in '<table' I expect intellisense to advise me on the attribute options for the <table> tag like 'class', 'id' etc. This is happening in *.html files but not in *.html.erb' files.

Thanks, Rob

0

Please sign in to leave a comment.