[Pharo-project] Indent code
When I select a few lines of text in Pharo 2.0 code editor and hit TAB it is not indented as in other IDE's. Instead it is deleted similar to when one hits space key. Usually TAB in IDE code editors is used to indent a selected block of text and SHIFT+TAB is used for the reverse (outdent). Is this a bug or just handled differently? Thx T.
on mac: ctrl+alt+r / l On 30.11.2012, at 12:49, Torsten Bergmann <astares@gmx.de> wrote:
When I select a few lines of text in Pharo 2.0 code editor and hit TAB it is not indented as in other IDE's. Instead it is deleted similar to when one hits space key.
Usually TAB in IDE code editors is used to indent a selected block of text and SHIFT+TAB is used for the reverse (outdent).
Is this a bug or just handled differently?
Thx T.
on Linux and Windows alt/ctrl + r On 30 November 2012 08:51, Max Leske <maxleske@gmail.com> wrote:
on mac: ctrl+alt+r / l
On 30.11.2012, at 12:49, Torsten Bergmann <astares@gmx.de> wrote:
When I select a few lines of text in Pharo 2.0 code editor and hit TAB it is not indented as in other IDE's. Instead it is deleted similar to when one hits space key.
Usually TAB in IDE code editors is used to indent a selected block of text and SHIFT+TAB is used for the reverse (outdent).
Is this a bug or just handled differently?
Thx T.
When I select a few lines of text in Pharo 2.0 code editor and hit TAB it is not indented as in other IDE's. Instead it is deleted similar to when one hits space key.
Usually TAB in IDE code editors is used to indent a selected block of text and SHIFT+TAB is used for the reverse (outdent).
I also expected that. Would be cool if this was the default behavior.
on mac: ctrl+alt+r / l
This makes sense from a language perspective (right/left), but note that not only you have to press more keys, but also is more tedious if you are adjusting the indentation. With this I mean if you want to quickly do left/right operations after another.
On 30.11.2012, at 13:28, Sebastian Nozzi <sebnozzi@gmail.com> wrote:
When I select a few lines of text in Pharo 2.0 code editor and hit TAB it is not indented as in other IDE's. Instead it is deleted similar to when one hits space key.
Usually TAB in IDE code editors is used to indent a selected block of text and SHIFT+TAB is used for the reverse (outdent).
I also expected that. Would be cool if this was the default behavior.
on mac: ctrl+alt+r / l
This makes sense from a language perspective (right/left), but note that not only you have to press more keys, but also is more tedious if you are adjusting the indentation. With this I mean if you want to quickly do left/right operations after another.
I didn't say it's good, just how it currently works :) +1 for better shortcuts (but checkout the currently active "Vim Keys?" thread for that) Max
On my Mac ctrl-alt l/r produced @ and ® respectively (MBA 2011, german keyboard). 2012/11/30 Max Leske <maxleske@gmail.com>:
on mac: ctrl+alt+r / l
On 30.11.2012, at 12:49, Torsten Bergmann <astares@gmx.de> wrote:
When I select a few lines of text in Pharo 2.0 code editor and hit TAB it is not indented as in other IDE's. Instead it is deleted similar to when one hits space key.
Usually TAB in IDE code editors is used to indent a selected block of text and SHIFT+TAB is used for the reverse (outdent).
Is this a bug or just handled differently?
Thx T.
it's actually cmd+shift+r/l Ben On Nov 30, 2012, at 4:04 PM, Sebastian Nozzi wrote:
On my Mac ctrl-alt l/r produced @ and ® respectively (MBA 2011, german keyboard).
2012/11/30 Max Leske <maxleske@gmail.com>:
on mac: ctrl+alt+r / l
On 30.11.2012, at 12:49, Torsten Bergmann <astares@gmx.de> wrote:
When I select a few lines of text in Pharo 2.0 code editor and hit TAB it is not indented as in other IDE's. Instead it is deleted similar to when one hits space key.
Usually TAB in IDE code editors is used to indent a selected block of text and SHIFT+TAB is used for the reverse (outdent).
Is this a bug or just handled differently?
Thx T.
participants (5)
-
Benjamin -
Clara Allende -
Max Leske -
Sebastian Nozzi -
Torsten Bergmann