崇高文本中的缩进快捷方式 [英] reindent shortcut in sublime text

查看:32
本文介绍了崇高文本中的缩进快捷方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<块引用>

可能的重复:
在 Sublime text 2 中缩进代码?

我正在尝试学习 Sublime 中的键盘快捷键.Sublime Text 2 中用于重新缩进的键盘快捷键是什么?根据某些页面,它应该是 TAB 但只缩进,而不是重新缩进.

解决方案

你可以在Edit>>Line>>>Reindent中找到它,但它默认没有快捷方式.您可以通过转到菜单 Preferences - Keybindings-User 添加快捷方式,然后在那里添加(配置文件采用 JSON 格式):

<预><代码>[{ "keys": ["f12"], "command": "reindent"}]

(使用 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屋!

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