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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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 + LSo: it’s R/L for right/left.