KOMPX.COM or COMPMISCELLANEA.COM   

Remove tabs at the beginning of lines in Notepad++

Removing tab spaces at the beginning of lines in Notepad++ editor. Two cases:

  1. Removing all tabs
  2. Removing a specific number of tabs

Removing all tabs

Removing all tabs present at the beginning of lines in a text:

  1. Ctrl + H
  2. Find What: ^\t+(.*)$
  3. Replace With: $1
  4. Wrap around
  5. Search Mode: Regular expression
  6. Replace All

"Replace" dialogue in Notepad++

Removing a specific number of tabs

Removing a given number of tabs at the beginning of lines in a text. It is exactly two tabs in the example:

  1. Ctrl + H
  2. Find What: ^\t{2}(.*)$
  3. Replace With: $1
  4. Wrap around
  5. Search Mode: Regular expression
  6. Replace All

"Replace" dialogue in Notepad++

Operating systems
More