Community
    • Login

    [Python] Replace spaces with tabs?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 127 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.
    • S
      Shohreh
      last edited by

      Hello,

      Unless I missed it, I saw no item in the menus to convert Python code so that it uses TABs instead of spaces — I know, but I prefer TABs.

      Is there a plugin or some other solution?

      Thank you.

      ac980ed9-f016-4abb-8dd8-ef644aa52f67-image.png

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Shohreh
        last edited by

        @Shohreh said in [Python] Replace spaces with tabs?:

        Unless I missed it, I saw no item in the menus

        You missed it.

        Edit > Blank Operations > Space to TAB (Leading) (see User Manual entry for details)

        93467433-46ad-458a-86c8-ffc0b2821496-image.png

        Also, if you want python to always use tabs for indentation, Settings > Preferences > Indentation: Python and set Indent = Tab character (see User Manual > Indentation settings for details):
        553797e5-84c7-4aa8-9974-c2ed9a28aa8e-image.png

        S 1 Reply Last reply Reply Quote 5
        • S
          Shohreh @PeterJones
          last edited by

          @PeterJones Thanks much for the infos.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors