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