문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top