English 中文(简体)
与在 SublimeText2 中 保存 Textmate 的语法之外重新格式化和检查语法等同吗?
原标题:What is the equivalent of re-formatting and checking syntax on save of Textmate in SublimeText2?

I recently switched to SublimeText2 from Textmate and I ve been enjoying it. But there are some features of Textmate which I don t know for SBT2.

  1. Selecting a block of code and pressing CMD+OPTION+[ re-formats the selected block.
  2. While saving a file CMD+S, ruby or jquery or coffee-script, etc.. Texmate checks the syntax of the code.

如何对SBT2做同样的事情?

最佳回答

要检查保存时的语法, 您可以使用 < a href=" https://github.com/ Kronuz/SublimeLinter" rel=“ nofollow” >SublimeLinter , 并修改代码, 您可以使用以下语言, 取决于您使用的语言 :

这里有许多其他类似的、其他有用的扩展名和插件:http://wbond.net/sublime_packages/community

使用“http://wbond.net/sublime_packages/package_control” rel=“no follow”>Package Control ,所有这些设备都可以很容易地安装并随时更新。

问题回答

暂无回答




相关问题
Explain this Regular Expression please

Regular Expressions are a complete void for me. I m dealing with one right now in TextMate that does what I want it to do...but I don t know WHY it does what I want it to do. /[[:alpha:]]+|( )/(?1::$...

TextMate: Adding to a bundle

There are a couple of bundles that I would like to add some functionality to. If I update the bundles via SVN will my additions/updates be replaced?

Textmate and vim modes

It is possible to emulate vim modes, macros and bindings in textmate?

Textmate, open file at Caret

I bet this is really obvious but I can t find how to open the linked file that the Caret is currently on in Textmate. For example in the likes of Dreamweaver you can click in the index.html portion of ...

Code folding on consecutive collect/select/reject/each

I play around with arrays and hashes quite a lot in ruby and end up with some code that looks like this: sum = two_dimensional_array.select{|i| i.collect{|j| j.to_i }.sum > 5 }.collect{|i| ...

git commit -a on Mac hangs when TextMate is quitted

I have core.editor set to "mate -w". On Leopard, git commit -a starts TextMate. After entering a commit log message, saving (Cmd-S), and quitting (Cmd-Q) TextMate, git would successfully complete the ...

热门标签