Community
    • Login

    Indentation from copy and paste of json not preserved

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 305 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.
    • Tina DavisT
      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
        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
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors