Tabs/Spaces: Disable conversation in both directions, just keep as entered
-
I need to edit a file with a crude syntax. I need to enter in some regions tabs, in others spaces.
Unfortunately I can’t edit this file, and i break it, when i do some additions in single lines.
np++ either replaces spaces by tabs (if I wish those, i would enter the tab-key), or it replaces tabs with spaces, when i enter them.Is there somewhere a hidden configuration, where I can just say: Do what I mean. Don’t touch any of those two characters. Accept them, as I enter them?
-
@notepadplupluuser said in Tabs/Spaces: Disable conversation in both directions, just keep as entered:
I need to edit a file with a crude syntax. I need to enter in some regions tabs, in others spaces.
Unfortunately I can’t edit this file, and i break it, when i do some additions in single lines.
np++ either replaces spaces by tabs (if I wish those, i would enter the tab-key), or it replaces tabs with spaces, when i enter them.Is there somewhere a hidden configuration, where I can just say: Do what I mean. Don’t touch any of those two characters. Accept them, as I enter them?
Method 1 (no auto-indent):
At Settings | Preferences… | Language:
(Notepad++ 8.6.8): select Indent settings: Indent using: Tab character
(pre-8.6.8) uncheck Tab settings: Replace by spaceAt Settings | Preferences… | Auto-completion:
uncheck Auto-indent.
Method 2 (auto-indent will always use spaces):
At Settings | Preferences… | Language:
(Notepad++ 8.6.8): select Indent settings: Indent using: Space character(s)
(pre-8.6.8) check Tab settings: Replace by spaceAt Settings | Shortcut Mapper… | Scintilla commands:
- Double-click the line for SCI_TAB.
- In the dropdown at the middle right (where it shows Tab), select None.
- Click Apply.
- Click OK.