崇高文本中的缩进快捷方式 [英] reindent shortcut in sublime text
问题描述
可能的重复:
在 Sublime text 2 中缩进代码?
我正在尝试学习 Sublime 中的键盘快捷键.Sublime Text 2 中用于重新缩进的键盘快捷键是什么?根据某些页面,它应该是 TAB 但只缩进,而不是重新缩进.
你可以在Edit>>Line>>>Reindent
中找到它,但它默认没有快捷方式.您可以通过转到菜单 Preferences - Keybindings-User 添加快捷方式,然后在那里添加(配置文件采用 JSON 格式):
(使用 F12 键实现该功能的示例)
Possible Duplicate:
Indenting code in Sublime text 2?
I'm trying to learn keyboard shortcuts in Sublime. What is the keyboard shortcut in Sublime Text 2 for reindent? According to some pages it should be TAB but that only indents, not reindents.
You can find it in Edit>>Line>>Reindent
, but it does not have a shortcut by default. You can add a shortcut by going to the menu Preferences - Keybindings-User, then add there (the config file takes as a JSON format):
[
{ "keys": ["f12"], "command": "reindent"}
]
(example of using the F12 key for that functionality)
这篇关于崇高文本中的缩进快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!