Reputation: 8450
I'm enjoying Sublime Text 2 as an editor for my Ruby on Rails project, however, when I'm editing my .erb files, I'm not getting any html help.
For example, if I typed: <input type="
, I would like to see a list of "text", "button", "file", etc.
I like the Visual Studio intellisense support for HTML, is there something similar for Sublime and Ruby on Rails?
Upvotes: 7
Views: 5013
Reputation: 489
In case you want HTML intellisense then follow the below steps 1) CTRL + SHIFT + P -> Install new package 2) Type emmet 3) Install emmet.io 4) Voila you are ready with HTML intellisense in sublime text 2.
Upvotes: 0
Reputation: 16261
Sublime Text has built in intellisense for html, even when editing .erb files. It even does a fuzzy match instead of an exact substring match like most intellisense tools.
ctrl+shift+p
and type Set Syntax: HTML (Rails)
ctrl+space
whenever you'd like intellisense menu to popupIf you want intellisense to automatically popup instead of hitting ctrl+space
you can modify the "auto_complete_triggers"
setting in Preferences.sublime_settings. For example, if you want the intellisense to popup after you've typed <
or =
you'd add this to your user settings file:
"auto_complete_triggers": [ {"selector": "text.html", "characters": "<="} ]
Upvotes: 8