Textmate选项卡和取消选项卡选定的块 [英] Textmate tab and de-tab selected block

查看:84
本文介绍了Textmate选项卡和取消选项卡选定的块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近在Mac上切换到Textmate进行编码.在PC上,无论何时我想输入或输出一段代码,我只需突出显示并按Tab或Shift + Tab即可将其移出.当您在代码块中添加额外的循环或条件语句以使所有内容保持整洁和缩进时,此功能非常有用.

Recently switched to Textmate on Mac for coding. On PC when ever I want to tab in or out a block of code I just highlight and press tab or shift+tab to move it in our out. It's very useful when you are adding an extra loop or conditional statement to a block of code to keep everything tidy and neatly indented.

但是在Textmate上,当我尝试此操作时,它只是将我选择的文本替换为选项卡.那么有没有办法在textmate中执行制表符和取消制表符的代码行?

On Textmate however when I try this it just replaces my selected text with a tab. So is there a way to do tab and de-tab lines of code in textmate?

推荐答案

缩进:Alt + Tab

Indent: Alt+Tab

无缩进:Shift + Alt + Tab

Un-Indent: Shift+Alt+Tab

这篇关于Textmate选项卡和取消选项卡选定的块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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