Community
    • Login

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

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 438 Views 1 Watching
    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 Offline
      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 Offline
        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

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