当前位置: 动力学知识库 > 问答 > 编程问答 >

keyboard shortcuts - How to indent a block of code in Pharo / Squeak?

问题描述:

With a selected a block of code, I try to indent it by pressing TAB.

I would expect the code to be indented.

Instead, the selected text is deleted and replaced by a TAB.

How come? Is there any other shortcut for this?

网友答案:

As a newcomer to Pharo/Squeak you might expect to indent a block of code by pressing TAB/SHIFT-TAB.

As it turns out, this is not the way it works as of Pharo 1.4 / Squeak 4.3 (however this might change in the future, see comment below).

The correct shortcuts for indenting-Right / indenting-Left are:

                 Indent (right)        Outdent (left)
    Win/Linux:    Ctl + Alt + R         Ctl + Alt + L 
    Mac:          Cmd + Shift + R       Cmd + Shift + L

So: it's R/L for right/left.

分享给朋友:
您可能感兴趣的文章:
随机阅读: