douyue8364
2014-08-03 23:34 阅读 96
已采纳

Sublime text 2中的Dreamweaver默认页面设置?

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

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

2条回答 默认 最新

  • 已采纳
    dpwdsmbvm496180204 dpwdsmbvm496180204 2015-05-05 06:31

    There are plugins for this. Such as SublimeTmpl

    点赞 评论 复制链接分享
  • dpn517111 dpn517111 2014-08-03 23:45

    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:

    enter image description here

    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

    点赞 1 评论 复制链接分享

相关推荐