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.



One thought on “Editing resource files in VS 2005 tip

Leave a Reply

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