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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login