Visual Studio Editor Question
-
Have been doing some C# programming lately. I personally like white space inside my C# statements. For example, when I code a function call I will put a space after each and every argument. When I type that in using the Visual Studio Editor and hit return, I find that the blanks I have added go away. I do not like that. It seems to me that there should be a way to turn it off. I am hoping somebody in this group can tell me how to do that. Thanks Bob
-
Have been doing some C# programming lately. I personally like white space inside my C# statements. For example, when I code a function call I will put a space after each and every argument. When I type that in using the Visual Studio Editor and hit return, I find that the blanks I have added go away. I do not like that. It seems to me that there should be a way to turn it off. I am hoping somebody in this group can tell me how to do that. Thanks Bob
-
Have been doing some C# programming lately. I personally like white space inside my C# statements. For example, when I code a function call I will put a space after each and every argument. When I type that in using the Visual Studio Editor and hit return, I find that the blanks I have added go away. I do not like that. It seems to me that there should be a way to turn it off. I am hoping somebody in this group can tell me how to do that. Thanks Bob
BobInNJ wrote:
I will put a space after each and every argument
Only after? Not before? Everything should be surrounded by whitespace.
-
BobInNJ wrote:
I will put a space after each and every argument
Only after? Not before? Everything should be surrounded by whitespace.
No!!! No whitespace! Whitespace is akin to white noise. Well, I suppose it's a personal choice. :)
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me
-
Tools | Options | Text Editor | C# | Formatting | Spacing
Jack of all trades ~ Master of none.
-
No!!! No whitespace! Whitespace is akin to white noise. Well, I suppose it's a personal choice. :)
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me
But it's quiet white noise.
-
Have been doing some C# programming lately. I personally like white space inside my C# statements. For example, when I code a function call I will put a space after each and every argument. When I type that in using the Visual Studio Editor and hit return, I find that the blanks I have added go away. I do not like that. It seems to me that there should be a way to turn it off. I am hoping somebody in this group can tell me how to do that. Thanks Bob
Return Type should be string.
-
Return Type should be string.
WHAT THE %#&*# ARE YOU TALKING ABOUT??
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
WHAT THE %#&*# ARE YOU TALKING ABOUT??
A guide to posting questions on CodeProject[^]
Dave KreskowiakI think this is a problem of data type.
-
I think this is a problem of data type.
No its not. Nowhere in the post did OP mention about variables. OP is simply asking if there is a way to disable Visual Studio's automatically removing of the whitespaces that OP is putting on his methods (ex.
void Method1( string arg1 )
)Signature construction in progress. Sorry for the inconvenience.
-
I think this is a problem of data type.
:omg: :wtf: Your solution doesn't have anything at all to do with the question that was asked. You are so far off topic that everyone who reads your answer will wonder if you intended to post your answer to an entirely different question.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
Tools | Options | Text Editor | C# | Formatting | Spacing
Jack of all trades ~ Master of none.
Thanks. This has been bothering me for a long time!
"Microsoft -- Adding unnecessary complexity to your work since 1987!"
-
I think this is a problem of data type.
This is a direct email response to your message on the page "C#". This message has not appeared on the discussion board for that page. Message from Apocalypse Now ..........@qq.com: I think you haven't understanded this problem.You think How do his problem resolved? ________________________________________ Ummm, I think it's very much YOU who haven't understood the problem. The 1st reply (JOAT-MON) to the OP solves the problem as described.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak