Community
    • Login

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

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 163 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

      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?

      CoisesC 1 Reply Last reply Reply Quote 0
      • CoisesC
        Coises @notepadplupluuser
        last edited by

        @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
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors