[Lazarus] how to convert a tab key press into two spaces in lazarus

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Aug 9 12:45:37 CEST 2008


On Sat, 9 Aug 2008 18:05:19 +0800
"davy zhang" <davyzhang at gmail.com> wrote:

> well. sorry for the confusion... this function called Tab Stops in
> Delphi,
> 
> In notepad or other simple txt editor, I press the TAB key on the
> keyboard, it will actually insert an ASCII code 09 in the file. That's
> fine
> 
> but in Delphi IDE code editor, I can choose to insert "20 20" ascii
> code when I press the TAB key on the keyboard
> 
> Usually I use the function to align my code with spaces
> 
> like this way
> 
> procedure TestFunction(test:Integer);
> begin
> <20><20> //do somethingcode
> end;
> 
> this <20><20> can be generated by one press of TAB key not a really
> two strokes of some Keys on the keyboard

Then I understood it correct. Use the given editor option.


Mattias



More information about the Lazarus mailing list