Low priority: Visual Studio IDE, string literals, convenience.
-
Dear Sirs, I have used Netbeans and Eclipse IDEs, and they have a nifty feature such that while you're typing a string literal, you can press enter, and it automatically inserts end quotes, plus sign, the appropriate tabs, then beginning quotes so that if I type
if (flag) string str = "There was an error in the output, you must first \[enter\]type 't', then the input.";
, the output is thus:
if (flag) string str = "There was an error in the output, you must first " + "type 't', then the input";
Is there an analogous feature in Visual Studio. Now, I have to type the end-quotes, the plus sign, enter, and the beginning quotes, and it gives me the red-squiggly the whole time. Thanks for your responses. In Christ, Aaron Laws http://ProCure.com/
-
Dear Sirs, I have used Netbeans and Eclipse IDEs, and they have a nifty feature such that while you're typing a string literal, you can press enter, and it automatically inserts end quotes, plus sign, the appropriate tabs, then beginning quotes so that if I type
if (flag) string str = "There was an error in the output, you must first \[enter\]type 't', then the input.";
, the output is thus:
if (flag) string str = "There was an error in the output, you must first " + "type 't', then the input";
Is there an analogous feature in Visual Studio. Now, I have to type the end-quotes, the plus sign, enter, and the beginning quotes, and it gives me the red-squiggly the whole time. Thanks for your responses. In Christ, Aaron Laws http://ProCure.com/
Hi, no, I don't think there is. FWIW: your example doesn't make sense, str is unused and out of scope right away. :)
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
Local announcement (Antwerp region): Lange Wapper? 59.24% waren verstandig genoeg om NEEN te stemmen; bye bye viaduct.
-
Hi, no, I don't think there is. FWIW: your example doesn't make sense, str is unused and out of scope right away. :)
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
Local announcement (Antwerp region): Lange Wapper? 59.24% waren verstandig genoeg om NEEN te stemmen; bye bye viaduct.
Dear Mr. Pattyn, Yeah, you HAVE to put things like this in your code all over the place, so that you can put out another version in a few months which is `optimized.' You must be novice. ;-) In Christ, Aaron Laws
-
Dear Mr. Pattyn, Yeah, you HAVE to put things like this in your code all over the place, so that you can put out another version in a few months which is `optimized.' You must be novice. ;-) In Christ, Aaron Laws
No, he's no novice. What he commented on was your example. You declared a variable in the True side of teh if statement and didn't use it for anything. He knows full well that the quotes and + sign is required as described in your question. No, there is no equivilent in Visual Studio. But, it sounds like a perfect opportunity for you to create a plugin to do it.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009... -
Dear Mr. Pattyn, Yeah, you HAVE to put things like this in your code all over the place, so that you can put out another version in a few months which is `optimized.' You must be novice. ;-) In Christ, Aaron Laws
LimitedAtonement wrote:
You must be novice
Yes I'm learning new stuff every day. :laugh:
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
Local announcement (Antwerp region): Lange Wapper? 59.24% waren verstandig genoeg om NEEN te stemmen; bye bye viaduct.
-
Dear Mr. Pattyn, Yeah, you HAVE to put things like this in your code all over the place, so that you can put out another version in a few months which is `optimized.' You must be novice. ;-) In Christ, Aaron Laws
Dear Sirs, Oh!! I was wondering why my message didn't seem to hit its mark properly -- I meant to put a wink in there after `novice'!! I'm just kidding! Now I see that the wink was edited out...how do I get a little smiley face in the text? Sorry if this was taken wrong.
In Christ, Aaron Laws http://ProCure.com