
Master IntelliSense #8
Chapter 2, Master the Editor
|
41
HACK
However, practicality often supersedes portability, and for most cases,
escaped carriage returns (i.e.,
\r and \n) are the absolute simplest to use.
SmartPaster allows you to easily configure which option to use.
AppendFormat on StringBuilder. The AppendFormat checkbox determines
how control characters should be handled within a string pasted as a String-
Builder. While this is mostly a matter of preference, one factor to consider
may be performance. A string literal concatenated with another constant
(such as
"Hello World" & vbCrLf), will be combined at compile time, thus
creating only one interned string. The AppendFormat method uses a format-
ter to parse the string and arguments such as
"Hello World{0}", vbCrLf at
runtime, incurring a slight overhead.
Key Bindings
When installed, SmartPaster adds five configurable environment com-
mands, one for each method of pasting, and the final to open the configura-
tion dialog. These commands can be bound to a key combination
[Hack #24] or
placed easily on a taskbar to make the options work best for you.
—Alex Papadimoulis
HACK
#8
Master IntelliSense Hack #8
Visual Studio can read your mind. Learn how to have Visual Studio’s
IntelliSense feature do lots of the typing for you.
Even if you have used Visual Studio only a couple times, I am sure you have
noticed one of its trademark features: IntelliSense. ...