MethylBlue
  1. Filelight
  2. Codeine
  3. Wocka
  4. Blog
  5. Detritus
  6. Home
RSS

Code Block Mass Indent, Mass Unindent with Borland Delphi IDE

May Google find this and thus help others, it caused me a few hours of irritation.

How do you indent a block of code in the Delphi IDE? Highlighting the code and pressing TAB (the usual way I might add!) just replaces the code with a TAB. Scouring the menus and toolbar customisation dialog reveals nothing. The Delphi help system is slow and rubbish.

It turns out you use CTRL-SHIFT-I and CTRL-SHIFT-U.

The Borland IDE shines in some ways, ie refactoring code, but otherwise I’m fairly unimpressed.

4 Responses

  1. Thanks for the tip! I’ve spent many hours being frustrated at not being able to indent blocks of code (resorting to manually doing it line by line!)… this is a big time saver. And yeah, the Delphi documentation sucks! -J

    Jaromy
  2. Thank you for this post. I’ve spent an hour or so to find out how to do such basic thing without any result.

    lamu
  3. thank you for the tip, i keep forgetting those shortcuts on a bi-weekly basis; minor greetings fly out to google indexer.

    i don’t really know why won’t they introduce something more common or intuitive to move around blocks of code, still, those shortcuts have been around since the first borland pascal, i think.

    halka
  4. Great!

    indeed a time saver and good to know

    Brusca

Leave a Reply