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?
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+pand typeSet Syntax: HTML (Rails)ctrl+spacewhenever you’d like intellisense menu to popupIf you want intellisense to automatically popup instead of hitting
ctrl+spaceyou 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": "<="} ]