Community
    • Login

    Indentation from copy and paste of json not preserved

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 586 Views 2 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.
    • Tina DavisT Offline
      Tina Davis
      last edited by

      I was issued a new Dell Latitude laptop for work and NotePad++ is an app we must grab from the IT app publisher. On my old laptop, with the same version of NP++, if I copy a json file and paste it into NP++, all the indentation is preserved. On my new laptop with a new install of NP++ (same version) if I copy and paste a setting, all indentations are collapsed. I have gone through every setting on the ‘old’ install and matched it to the new. What is am I doing wrong. TYIA for any help you can provide me. I am not a ‘tech’ person and at a loss!

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP Offline
        PeterJones @Tina Davis
        last edited by

        @Tina-Davis ,

        I have gone through every setting on the ‘old’ install and matched it to the new.

        Have you compared the ?-menu’s Debug Info on the two? Maybe there’s a different plugin on the old that you don’t have on the new (or different setting in one of those plugins)

        Have you done a detailed check of the Settings > Preferences > Language dialog’s Tab Settings section? Each different language has a different setting. The important ones for JSON are [Default] and json
        e63be1fb-9670-4ee7-b5ed-e2f0b0dd53e0-image.png
        39bedec9-45a1-4f12-a563-0617f9ed418f-image.png

        Also, did you select the main menu > Language > J > JSON before pasting? That would affect the tab options while editing.

        Though really, a paste should preserve the existing indentation, no matter what type of file it’s pasting into, and no matter what Tab settings are defined. So my best guess is still a plugin.

        1 Reply Last reply Reply Quote 2

        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