序言:

mac 新手,sublime也没有怎么用过,以前一直在用eclipse.
现在有个js文件要格式化所以搜索了一下看到了解决方案:
(话说markdown也没有用过这个blog还试用一下markdown)

在Sublime Text中,按下Command+Shift+P调出命令面板;

调用Install Package;

输入install 调出 Install Package 选项并回车;
(

这一步就出现问题我的sublime里没有出现Install Package…

下载 Package Control.sublime-package

复制文件到对应目录:

复制下载文件到~/Library/Application Support/Sublime Text 2/Installed Packages目录中,没有就新建一个.有的资料写的复制到Packages目录里我的电脑放到这里是没有生效我又移到Installed Packages的.然后重启sublime,这样就可以调出Install Package了.
)

输入pretty,并在列表中选择HTML-CSS-JS Prettify后回车即可安装

快捷使用方法:

举例:
打开一个压缩的jquery.min.js文件,选中要格式的部分然后按下Ctrl+Shift+H.

这篇文章使用markdown的#表示h1 和[文字](href)表示超链接.

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment