Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio removes line break on start

Tags:

I have the problem that Visual Studio (or maybe Resharper?) removes line breaks when I try to start my application. This happens in a way that when I press F5 or click on the run button with the mouse that a line break at the line where the cursor was the last time will be removed which is extremely annoying.

I have not tried so many things yet because I really don't know where to start. I never experienced this problem before and was always working with the same setup:

  • Visual Studio 2010
  • Resharper 6.1.1

Other plugins I use but which were installed after the problem (so I think they should not be related to the problem):

  • AnkhSvn
  • TeamCity

Example:

Before:

public void test(){
  int x = 5;
}

After running the solution:

public void test(){
  int x = 5;}

Edit: This issue seems to be related to Resharper - so hopefully they will be able to fix this issue as I never had this with any previous versions. (http://devnet.jetbrains.net/message/5456038#5456038).

like image 299
Eggi Avatar asked Mar 25 '12 13:03

Eggi


People also ask

What is Crlf in Visual Studio?

The following characters are interpreted as line breaks in Visual Studio: CR LF: Carriage return + line feed, Unicode characters 000D + 000A. LF: Line feed, Unicode character 000A. NEL: Next line, Unicode character 0085. LS: Line separator, Unicode character 2028.


1 Answers

This is a problem with Dexexpress Dim@ster patch. If you delete licenses.licx and compile in the source code. Not happend. The problem is when you open a form and licenses.licx is created again. Is you uninstall the patch this dissapear. But I dont understand why deactivating Resharper the problem gone too. But without patch and resharper + devexpress trial working fine.

The problem is the patch.

like image 82
Yuri Morales Avatar answered Oct 07 '22 23:10

Yuri Morales