DCSIMG
Visual Studio Tip: Line Break in String Properties - IronShay

Visual Studio Tip: Line Break in String Properties

A colleague of mine asked me today "how do I line break my resource string? Enter doesn't work". This is when I realized that this thing wasn't as trivial as one may think...

So how do you that? In resources and string properties on the designer in Visual Studio, you can see only one line at a time and when you hit Enter, the value is set and you don't get the required line break.

All you have to do in order to have your line break, is hit Shift + Enter. This will break the line and put the cursor at the beginning of the next line.

image

Hope it helps,
Shay.

Published Wednesday, November 19, 2008 10:56 AM by shayf

Comments

# My .NET Development Links | Dev102.com

Pingback from  My .NET Development Links | Dev102.com

Friday, December 05, 2008 1:48 AM by My .NET Development Links | Dev102.com

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Enter the numbers above: