html, js, php, python等等, 不同文件的格式化规则是不同的, 需要单独配置, 幸运的是, 都是按快捷键shift + alt + f(Ubuntu上 Ctrl+ Shift+I)格式化代码。
设置 -> 文本编辑器 -> 正在格式化 -> 勾选Format On Save

sublime text 3

sublime比较麻烦, 我还没有研究明白

phpstorm && pychamy


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

$ hexo new "My New Post"

More info: Writing

Run server

$ hexo server

More info: Server

Generate static files

$ hexo generate

More info: Generating

Deploy to remote sites

$ hexo deploy

More info: Deployment