I really like dreamweaver and am trying to switch to sublime text. The only thing missing in sublime text is that when you create a new document you have to fill in all the page info (<!doctype html>, <html>, <head>
) In dreamweaver it did this for you. Is there a way to do this in Sublime text? Thanks
There are plugins for this. Such as SublimeTmpl
What you need is the SublimeTmpl which does exactly that. Install it using the Package Manager. Then press CTRL+SHIFT+P
and type "Install" and hit ENTER
.
Then, search for SublimeTmpl
. Finally, create a new file and press CTRL+ALT+H
and you should get something like this:
Of course, this can work for many other types of files (html, js, css, php, python, ruby, etc.) and you'd have to hit their required keystroke for that.
Here are the default key bindings:
ctrl+alt+h html
ctrl+alt+j javascript
ctrl+alt+c css
ctrl+alt+p php
ctrl+alt+r ruby
ctrl+alt+shift+p python