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. The Lounge
  3. Visual Studio 'Formatting' Lines

Visual Studio 'Formatting' Lines

Scheduled Pinned Locked Moved The Lounge
helpcsharpvisual-studiotutorialquestion
12 Posts 10 Posters 1 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.
  • K Offline
    K Offline
    Kevin Marois
    wrote on last edited by
    #1

    I posted on this a while back and never got a resolution. Using VS2019. In SOME of my code editor windows there appears these horizontal dotted lines. They appear to be indenting indicators of some kind. [See this pic](https://1drv.ms/u/s!AjBmoYAYz\_v2hBWUq3IUnlroKKeR?e=19HPfO) You can see the lines highligted in red on the left. Yet they DON'T appear on the right code window. Some windows they show up, others they don't. These really bug me. I've tried all manner of things in Settings. Anyone know how to make these go away?

    If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

    Richard DeemingR R D M B 6 Replies Last reply
    0
    • K Kevin Marois

      I posted on this a while back and never got a resolution. Using VS2019. In SOME of my code editor windows there appears these horizontal dotted lines. They appear to be indenting indicators of some kind. [See this pic](https://1drv.ms/u/s!AjBmoYAYz\_v2hBWUq3IUnlroKKeR?e=19HPfO) You can see the lines highligted in red on the left. Yet they DON'T appear on the right code window. Some windows they show up, others they don't. These really bug me. I've tried all manner of things in Settings. Anyone know how to make these go away?

      If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      That looks like "view whitespace". The file on the left has a mixture of spaces and tabs. The file on the right is only using tabs. Ctrl+R, Ctrl+W is the default keyboard shortcut to toggle it; otherwise, the option is within the "Edit" menu.


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      K 1 Reply Last reply
      0
      • Richard DeemingR Richard Deeming

        That looks like "view whitespace". The file on the left has a mixture of spaces and tabs. The file on the right is only using tabs. Ctrl+R, Ctrl+W is the default keyboard shortcut to toggle it; otherwise, the option is within the "Edit" menu.


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        K Offline
        K Offline
        Kevin Marois
        wrote on last edited by
        #3

        Richard Deeming wrote:

        Ctrl+R, Ctrl+W is the default keyboard shortcut to toggle it; otherwise, the option is within the "Edit" menu.

        This toggles on/off some little right arrows. Those are the whitespace indicators. There's nothing on the Edit menu that I can see that affects this. But even if this was a setting of some kind, why is it on in some files and not in others?? It should be on/off across all files.

        If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

        M 1 Reply Last reply
        0
        • K Kevin Marois

          I posted on this a while back and never got a resolution. Using VS2019. In SOME of my code editor windows there appears these horizontal dotted lines. They appear to be indenting indicators of some kind. [See this pic](https://1drv.ms/u/s!AjBmoYAYz\_v2hBWUq3IUnlroKKeR?e=19HPfO) You can see the lines highligted in red on the left. Yet they DON'T appear on the right code window. Some windows they show up, others they don't. These really bug me. I've tried all manner of things in Settings. Anyone know how to make these go away?

          If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

          R Offline
          R Offline
          RickZeeland
          wrote on last edited by
          #4

          Maybe one of the answers here: c# - How to remove dotted line from text editor in visual studio? - Stack Overflow[^]

          1 Reply Last reply
          0
          • K Kevin Marois

            I posted on this a while back and never got a resolution. Using VS2019. In SOME of my code editor windows there appears these horizontal dotted lines. They appear to be indenting indicators of some kind. [See this pic](https://1drv.ms/u/s!AjBmoYAYz\_v2hBWUq3IUnlroKKeR?e=19HPfO) You can see the lines highligted in red on the left. Yet they DON'T appear on the right code window. Some windows they show up, others they don't. These really bug me. I've tried all manner of things in Settings. Anyone know how to make these go away?

            If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

            D Offline
            D Offline
            Delphi 7 Solutions
            wrote on last edited by
            #5

            why are you putting protected methods in a region called privat methods ? Just curious

            D 1 Reply Last reply
            0
            • D Delphi 7 Solutions

              why are you putting protected methods in a region called privat methods ? Just curious

              D Offline
              D Offline
              den2k88
              wrote on last edited by
              #6

              Protected methods are private, except that derived classes can use them. Unless you are absolutely, positively sure that some methods should not be inherited I find it best to use protected, as it makes future derivations easier.

              GCS d--(d-) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++*      Weapons extension: ma- k++ F+2 X

              E 1 Reply Last reply
              0
              • D den2k88

                Protected methods are private, except that derived classes can use them. Unless you are absolutely, positively sure that some methods should not be inherited I find it best to use protected, as it makes future derivations easier.

                GCS d--(d-) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++*      Weapons extension: ma- k++ F+2 X

                E Offline
                E Offline
                etkid84
                wrote on last edited by
                #7

                IMHO, code for the current use case. If something needs to be added in the future it's just as easy to move it from private to protected when you add the new functionality. This isn't the kind of thing is easy to change later and won't impact future work in terms of design and architecture.:java:

                ~d~

                1 Reply Last reply
                0
                • K Kevin Marois

                  I posted on this a while back and never got a resolution. Using VS2019. In SOME of my code editor windows there appears these horizontal dotted lines. They appear to be indenting indicators of some kind. [See this pic](https://1drv.ms/u/s!AjBmoYAYz\_v2hBWUq3IUnlroKKeR?e=19HPfO) You can see the lines highligted in red on the left. Yet they DON'T appear on the right code window. Some windows they show up, others they don't. These really bug me. I've tried all manner of things in Settings. Anyone know how to make these go away?

                  If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

                  M Offline
                  M Offline
                  Mark Starr
                  wrote on last edited by
                  #8

                  As others have said, it almost looks like View Whitespace is on, but if that were so, you’d see dots (the space indicator) between all words as well. I don’t have my IDE open right now, so haven’t looked for some kind of indentation indicator. I wonder if perhaps you have an extension loaded that’s doing some inconsistent things. Have you tried unloading all extensions to see what happens? Then load them one-by-one to see whether you can isolate the behavior?

                  Time is the differentiation of eternity devised by man to measure the passage of human events. - Manly P. Hall Mark Just another cog in the wheel

                  1 Reply Last reply
                  0
                  • K Kevin Marois

                    I posted on this a while back and never got a resolution. Using VS2019. In SOME of my code editor windows there appears these horizontal dotted lines. They appear to be indenting indicators of some kind. [See this pic](https://1drv.ms/u/s!AjBmoYAYz\_v2hBWUq3IUnlroKKeR?e=19HPfO) You can see the lines highligted in red on the left. Yet they DON'T appear on the right code window. Some windows they show up, others they don't. These really bug me. I've tried all manner of things in Settings. Anyone know how to make these go away?

                    If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

                    B Offline
                    B Offline
                    BDieser
                    wrote on last edited by
                    #9

                    Does it go away if you hit the escape key?

                    1 Reply Last reply
                    0
                    • K Kevin Marois

                      Richard Deeming wrote:

                      Ctrl+R, Ctrl+W is the default keyboard shortcut to toggle it; otherwise, the option is within the "Edit" menu.

                      This toggles on/off some little right arrows. Those are the whitespace indicators. There's nothing on the Edit menu that I can see that affects this. But even if this was a setting of some kind, why is it on in some files and not in others?? It should be on/off across all files.

                      If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

                      M Offline
                      M Offline
                      Member_5893260
                      wrote on last edited by
                      #10

                      Perhaps it has something to do with the Settings for "Text Editors" where there's a sort of general bit for "All Languages" and then different settings for different ones, based on file extension... could it be that it's doing it differently depending on what type of file you're looking at?

                      K 1 Reply Last reply
                      0
                      • M Member_5893260

                        Perhaps it has something to do with the Settings for "Text Editors" where there's a sort of general bit for "All Languages" and then different settings for different ones, based on file extension... could it be that it's doing it differently depending on what type of file you're looking at?

                        K Offline
                        K Offline
                        Kevin Marois
                        wrote on last edited by
                        #11

                        Maybe, but like I show in the pic, they doesn't show in all files.

                        If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

                        1 Reply Last reply
                        0
                        • K Kevin Marois

                          I posted on this a while back and never got a resolution. Using VS2019. In SOME of my code editor windows there appears these horizontal dotted lines. They appear to be indenting indicators of some kind. [See this pic](https://1drv.ms/u/s!AjBmoYAYz\_v2hBWUq3IUnlroKKeR?e=19HPfO) You can see the lines highligted in red on the left. Yet they DON'T appear on the right code window. Some windows they show up, others they don't. These really bug me. I've tried all manner of things in Settings. Anyone know how to make these go away?

                          If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

                          B Offline
                          B Offline
                          BernardIE5317
                          wrote on last edited by
                          #12

                          Greetings Kind Regards This no doubt not the cause but it is hard not to at least attempt it to wit emplace the statement "using System.Windows" into the left file just as it is emplaced in the right as that appears to be the only difference of any possible significance - Cheerio

                          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