简体   繁体   English

Jslint和Sublime文字

[英]Jslint and sublime text

I'm working with Sublime Text 2 for writing my javascript codes, and I want to know if there is anyway to indent the codes and make them in order after writing. 我正在用Sublime Text 2编写我的JavaScript代码,我想知道是否有缩进代码并在编写后按顺序进行排序。

Every time I use tab and space and it's hard for me to keep them inline. 每次我使用制表符和空格时,很难使它们保持内联。

Is JSLint related to what I need? JSLint与我需要的东西有关吗?

Should I add any extra feature to Sublime Text? 我应该在Sublime Text中添加任何其他功能吗?

I found solution in this link: http://nicksantan.com/blog/2012/12/adding-auto-format-code-indenting-to-sublime-text-2/ 我在此链接中找到了解决方案: http : //nicksantan.com/blog/2012/12/adding-auto-format-code-indenting-to-sublime-text-2/

Hopt it work. 跳上它的工作。

选择所有文本->编辑->行->重新缩进

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM