
40
|
Chapter 2, Master the Editor
#7 Make Pasting into Visual Studio Easier
HACK
Configuration
SmartPaster offers a number of configuration options to make the add-in
work best for you. The SmartPaster configuration dialog is shown in
Figure 2-6 and can be accessed through Paste As
➝ Configure.
A bit of explanatory text is available as a tool tip for all of the options, and
most options are self-explanatory.
Line breaks. There are quite a few ways to specify line breaks:
ControlChars.
NewLine
, Environment.NewLine, Char(13), and depending on your language,
vbCrLf, \n, and \r\n. Most of these accomplish the same thing: insert the
special ASCII characters CR (carriage return), LF (line feed), or both.
The recommended way of adding line breaks is with
Environment.NewLine.
Unlike the other methods, this will insert the appropriate ASCII representa-
tion of a line break: an LF for Unix, a CR for Apple, and a combination of
the two for Windows.
Figure 2-5. Region dialog
Figure 2-6. SmartPaster Configuration dialog