升华文字自动缩进 [英] Autoindent on Sublime Text

查看:104
本文介绍了升华文字自动缩进的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有命令/快捷方式可在Sublime Text 3上一次自动缩进页面上的所有代码?

Are there any command/shortcut to auto-indent all my code on the page at once on Sublime Text 3?

例如:在NetBeans上,我可以使用 Alt + Shift + F

e.g: On NetBeans I can do this with Alt+Shift+F.

推荐答案

在Sublime中这很简单。只需 Ctrl + Shift + P (或MacOS上的 Command + Shift + P )打开工具栏,键入 reindent ,然后选择 Indentation:Reindent Lines 。它应该重新缩进您所在的所有文件,只是在运行命令之前记得保存,否则它可能不会出现。

That's quite simple in Sublime. Just Ctrl+Shift+P (or Command+Shift+P on MacOS) to open the tools pallet, type reindent, and pick Indentation: Reindent Lines. It should reindent all the file you are in, just remember to save before running the command, or it may not appear.

这篇关于升华文字自动缩进的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆