Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how to get rid of VC++ tabs?

how to get rid of VC++ tabs?

Scheduled Pinned Locked Moved C / C++ / MFC
c++regextutorialquestion
10 Posts 4 Posters 0 Views 1 Watching
  • 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.
  • 9 Offline
    9 Offline
    9ine
    wrote on last edited by
    #1

    I found it is strange, while in VC studio editor the code looks very nice with propper spacing, but when you view it in simple text editor the lines are out of order and do not match the same style in the VC. It the TABs that VC paste here and there, but you can not get rid of them thru find and replace, since you press button TAB in the find edit box it skips to net control.

    9ine

    D K 2 Replies Last reply
    0
    • 9 9ine

      I found it is strange, while in VC studio editor the code looks very nice with propper spacing, but when you view it in simple text editor the lines are out of order and do not match the same style in the VC. It the TABs that VC paste here and there, but you can not get rid of them thru find and replace, since you press button TAB in the find edit box it skips to net control.

      9ine

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      9ine wrote:

      ...when you view it in simple text editor the lines are out of order and do not match the same style in the VC.

      Which is why you should use spaces, not tabs.


      "Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.

      "Judge not by the eye but by the heart." - Native American Proverb

      9 1 Reply Last reply
      0
      • D David Crow

        9ine wrote:

        ...when you view it in simple text editor the lines are out of order and do not match the same style in the VC.

        Which is why you should use spaces, not tabs.


        "Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.

        "Judge not by the eye but by the heart." - Native American Proverb

        9 Offline
        9 Offline
        9ine
        wrote on last edited by
        #3

        ??? I dont use TABS, always spaces, but VC like tabs, e.g. when you start to compose switch() block and typing like case 2: and after you press ':' button VC accelerate this line ahead so it is ____case 2: and you have to delete VC job but there is always some hidden TABS which you can not see and your code looks normal in VC but horible in text editor

        9ine

        D T 2 Replies Last reply
        0
        • 9 9ine

          ??? I dont use TABS, always spaces, but VC like tabs, e.g. when you start to compose switch() block and typing like case 2: and after you press ':' button VC accelerate this line ahead so it is ____case 2: and you have to delete VC job but there is always some hidden TABS which you can not see and your code looks normal in VC but horible in text editor

          9ine

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          immediately after it autoformats your text, do Ctrl+Z...


          TOXCCT >>> GEII power

          [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

          9 1 Reply Last reply
          0
          • 9 9ine

            ??? I dont use TABS, always spaces, but VC like tabs, e.g. when you start to compose switch() block and typing like case 2: and after you press ':' button VC accelerate this line ahead so it is ____case 2: and you have to delete VC job but there is always some hidden TABS which you can not see and your code looks normal in VC but horible in text editor

            9ine

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            9ine wrote:

            but VC like tabs,

            So just change it to use spaces instead.

            9ine wrote:

            ...there is always some hidden TABS which you can not see...

            Use Ctrl+Shift+8 to see them.


            "Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.

            "Judge not by the eye but by the heart." - Native American Proverb

            1 Reply Last reply
            0
            • 9 9ine

              I found it is strange, while in VC studio editor the code looks very nice with propper spacing, but when you view it in simple text editor the lines are out of order and do not match the same style in the VC. It the TABs that VC paste here and there, but you can not get rid of them thru find and replace, since you press button TAB in the find edit box it skips to net control.

              9ine

              K Offline
              K Offline
              krmed
              wrote on last edited by
              #6

              If you're using VC++ 6.0, select your text and then you can use the Edit menu, Advanced, Untabify to replace the tabs with spaces. Hope that helps.

              Karl - WK5M PP-ASEL-IA (N43CS) PGP Key: 0xDB02E193 PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

              9 1 Reply Last reply
              0
              • K krmed

                If you're using VC++ 6.0, select your text and then you can use the Edit menu, Advanced, Untabify to replace the tabs with spaces. Hope that helps.

                Karl - WK5M PP-ASEL-IA (N43CS) PGP Key: 0xDB02E193 PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

                9 Offline
                9 Offline
                9ine
                wrote on last edited by
                #7

                I use VC 2003

                9ine

                9 1 Reply Last reply
                0
                • T toxcct

                  immediately after it autoformats your text, do Ctrl+Z...


                  TOXCCT >>> GEII power

                  [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

                  9 Offline
                  9 Offline
                  9ine
                  wrote on last edited by
                  #8

                  does not help with "if" and press "{"

                  9ine

                  T 1 Reply Last reply
                  0
                  • 9 9ine

                    does not help with "if" and press "{"

                    9ine

                    T Offline
                    T Offline
                    toxcct
                    wrote on last edited by
                    #9

                    weird, it does for me, for any auto-reformat... (with VC2003, like you)


                    TOXCCT >>> GEII power

                    [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

                    1 Reply Last reply
                    0
                    • 9 9ine

                      I use VC 2003

                      9ine

                      9 Offline
                      9 Offline
                      9ine
                      wrote on last edited by
                      #10

                      yeah untabify works fine

                      9ine

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups