[Geany-Users] Tabify/untabify on selection only, in complete line
lists.ban at xxxxx
Sat Aug 26 19:00:23 UTC 2017
Le 26/08/2017 à 11:43, Matthew Brush a écrit :
> On 2017-08-26 10:26 AM, Lars Paulsen wrote:
>> Hi All,
>> I would like to know if there is a way to tabify/untabify a portion of
>> selected text?
>> I know I can mark text and change the indentation with tab/shift tab
>> and that will also delete tabs (if configured).
>> But it does only delete the tab on the start of the line before the
>> first token.
>> E.g. '-->token-->nextToken;' becomes '....token-->nextToken;' ('.' =
>> one space, '-->' = one tab).
>> I would like it to become '....token....nextToken;'.
>> How can I do that, only for a selection - not for the whole document.
> I've wanted that a few times as well. One reasonable way would be to
> change the `Document->Replace [tabs|spaces] with [tabs|spaces]` options
> to only affect the current selection if there is one. It just requires
> someone who cares enough to implement it :)
Someone did a while ago and it made it in 1.26 already ;)
So, just select some lines and use that feature and it should do what
you like. WFM at least :)
More information about the Users