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. Using Auto Spaces

Using Auto Spaces

Scheduled Pinned Locked Moved C / C++ / MFC
questionvisual-studiohelpcsharp
6 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.
  • S Offline
    S Offline
    Semion_N
    wrote on last edited by
    #1

    It's not a really question about programming issue it's about visual studio problem. I want to use auto spaces, for instance is I write: a=1;(without spaces). I want it automaticly to be: a = 1;(with spaces). I tried to find this option but I haven't found(I'm talking about vs 2005 pro)it. Can anyone tell me please how can I activate this option? Thank you!

    Semion_N

    W K 2 Replies Last reply
    0
    • S Semion_N

      It's not a really question about programming issue it's about visual studio problem. I want to use auto spaces, for instance is I write: a=1;(without spaces). I want it automaticly to be: a = 1;(with spaces). I tried to find this option but I haven't found(I'm talking about vs 2005 pro)it. Can anyone tell me please how can I activate this option? Thank you!

      Semion_N

      W Offline
      W Offline
      Waldermort
      wrote on last edited by
      #2

      There is no default setting for such a thing, but it is possible to create a macro to do the job for you. A macro is coded using VB script and loaded into VS, you can set them to run continuosly or on command. Do a search for Vs and macros on google, you will find many examples.

      S 1 Reply Last reply
      0
      • S Semion_N

        It's not a really question about programming issue it's about visual studio problem. I want to use auto spaces, for instance is I write: a=1;(without spaces). I want it automaticly to be: a = 1;(with spaces). I tried to find this option but I haven't found(I'm talking about vs 2005 pro)it. Can anyone tell me please how can I activate this option? Thank you!

        Semion_N

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

        I assume you must have used, or discovered, this for C# and are looking to do the same thing for C++, right? C# has options for this (Options->text Editor->C#->Formatting) but C++ doesn't. No obvious reason for the difference! Once again C++ lags behind in IDE support.:mad: Anyway, like you I like to see white spaces around operators, etc. Lack of use of whitespace is one of my pet hates in reading C-family code. Less of a problem in VB because of the auto-spaces that it's had for ages.

        Kevin

        S 1 Reply Last reply
        0
        • K Kevin McFarlane

          I assume you must have used, or discovered, this for C# and are looking to do the same thing for C++, right? C# has options for this (Options->text Editor->C#->Formatting) but C++ doesn't. No obvious reason for the difference! Once again C++ lags behind in IDE support.:mad: Anyway, like you I like to see white spaces around operators, etc. Lack of use of whitespace is one of my pet hates in reading C-family code. Less of a problem in VB because of the auto-spaces that it's had for ages.

          Kevin

          S Offline
          S Offline
          Semion_N
          wrote on last edited by
          #4

          Yeah I saw it on C# :mad: and thank you for the answer!

          SnaidiS(Semion)

          T 1 Reply Last reply
          0
          • W Waldermort

            There is no default setting for such a thing, but it is possible to create a macro to do the job for you. A macro is coded using VB script and loaded into VS, you can set them to run continuosly or on command. Do a search for Vs and macros on google, you will find many examples.

            S Offline
            S Offline
            Semion_N
            wrote on last edited by
            #5

            OK,thank you!

            SnaidiS(Semion)

            1 Reply Last reply
            0
            • S Semion_N

              Yeah I saw it on C# :mad: and thank you for the answer!

              SnaidiS(Semion)

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

              ":mad:" ? :confused:


              TOXCCT >>> GEII power

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

              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