Editing resource files in VS 2005 tip

Resource files are great for storing strings that need to be translated and Visual Studio makes it real easy to add resource files and edit them. However something that isn’t immediately obvious is how to go about adding a carriage return in a resource string. If you press enter VS just takes you to the next row in the grid. The trick is to use shift enter instead of just enter and you get a new line in the same resource string.

Of course you still need to resize the row to see the whole line but that is easy to, just double click the resize line in the row header (that is the one at the bottom of the row) and VS will auto resize the row so you can read all text.

Enjoy!

 

One thought on “Editing resource files in VS 2005 tip

Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>