Question

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?

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top