Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-08

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

6 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

davy zhang

I didn't find an option to make that work, it's pretty much annoying when I have to delete the dynamic tab spaces, and change it to 2 spaces

I guess there should be an option, but I failed to reach it.

Any hint please, thanks a lot.

Reply by email

davy zhang
to Mattias Gaertner

thanks for the reply

but I mean when I press the tab key on the keyboard, I was expecting the IDE can automatically convert this operation to two spaces key stroke:)

Mattias Gaertner wrote 18 lines
On Sat, 9 Aug 2008 14:05:28 +0800 "davy zhang" wrote: > I didn't find an option to make that work, it's pretty much annoying > when I have to delete the dynamic tab spaces, and change it to 2 > spaces > > I guess there should be an option, but I failed to reach it. Do you mean this: http://wiki.lazarus.freepascal.org/IDE_Window:_Editor_Options#Tabs_to_spaces Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mattias Gaertner
to davy zhang
Show quoted text 5 lines
thanks for the reply but I mean when I press the tab key on the keyboard, I was expecting the IDE can automatically convert this operation to two spaces key stroke:)

I have no idea what you are intending to do. Please give an example.

Mattias

Reply by email

davy zhang
to Mattias Gaertner

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

in DELPHI they call this " Tab Stops"

Mattias Gaertner wrote 17 lines
On Sat, 9 Aug 2008 16:56:31 +0800 "davy zhang" wrote: > thanks for the reply > > but I mean when I press the tab key on the keyboard, I was expecting > the IDE can automatically convert this operation to two spaces key > stroke:) I have no idea what you are intending to do. Please give an example. Mattias _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Mattias Gaertner
to davy zhang
Show quoted text 21 lines
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

Reply by email