• Login
Community
  • Login

Tabs/Spaces: Disable conversation in both directions, just keep as entered

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
2 Posts 2 Posters 176 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N
    notepadplupluuser
    last edited by Jun 7, 2024, 9:39 PM

    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?

    C 1 Reply Last reply Jun 7, 2024, 10:56 PM Reply Quote 0
    • C
      Coises @notepadplupluuser
      last edited by Jun 7, 2024, 10:56 PM

      @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 space

      At 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 space

      At 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.
      1 Reply Last reply Reply Quote 3
      2 out of 2
      • First post
        2/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors