• Login
Community
  • Login

Tabbing uses spaces with python

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 3 Posters 612 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.
  • F
    Frosty126
    last edited by Jun 22, 2022, 8:10 PM

    Whenever I try to tab in a python document, it instead places 4 spaces.
    I know that spaces can be used instead of tabs but that is what I am accustomed to using.
    What I am asking, is how to make notepad++ tab with the TAB character and not spaces

    P A 2 Replies Last reply Jun 22, 2022, 8:13 PM Reply Quote 1
    • P
      PeterJones @Frosty126
      last edited by Jun 22, 2022, 8:13 PM

      @felix-vincent

      Settings > Preferences > Language has the tab settings, both globally and on a per-language basis (so you would want to change the Python tab setting if you only want to affect Python source code tabs)

      https://npp-user-manual.org/docs/preferences/#language

      1 Reply Last reply Reply Quote 3
      • A
        Alan Kilborn @Frosty126
        last edited by Jun 22, 2022, 8:15 PM

        @felix-vincent

        Think hard about doing such a thing.
        Industry recommended standard for Python is spaces, not tab characters.

        If you really want to do it, here’s the UI for changing it that Peter referenced; you’d untick the Replace by space box:

        e06ebb5c-76ea-4889-8c46-1702438ac71d-image.png

        F 1 Reply Last reply Jun 22, 2022, 8:24 PM Reply Quote 3
        • F
          Frosty126 @Alan Kilborn
          last edited by Jun 22, 2022, 8:24 PM

          @alan-kilborn I have thought hard, I just hate indenting with spaces

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