Solve the inconsistency between the end and end of the lines in the following file reported by vs. netide. Do you want to standardize the end of the line ?" Prompt

Source: Internet
Author: User

I also found this problem today. I didn't pay attention to it before, but I found that every time my colleague checked inCodeOr I will find some blank lines after checking in, and most of them are in comments.

For example

/// <Summary>

/// Set the timer status

/// </Summary>

This annotation will become

 

/// <Summary>

/// Set the timer status

 

/// </Summary>

In this way, there will be a lot of warning information during compilation, prompting that the comments are not correctly placed.

 

I checked it online and basically wrote it like this:

Solution: Enable Automatic Detection UTF-8.

Tools-> options-> Editor-> Auto Detect UTF-8..., check.

 

 

 

Cause Analysis: It may be caused by different identifiers at the end of the line when writing code. By default, the system checks the end of a row.

 

Solution: Remove the check at the end of the row, or change the content at the end of the row to a uniform one.

 

Remove the configuration of the row tail check: In the options-> environment-> document, there is a "check for the same row Tail During loading" hook removed and the check will not be performed.

 

Of course, if garbled characters may occur because of Encoding Problems, you can enable UTF-8 detection, in tools-> options-> Text Editor-> automatic detection without signature UTF-8 encoding, check.

The settings are as follows:

 

Solution 2:Format the end of the line:

Copy all the file content to notepad or text encoding tool (such as editplus), and then to vs.net. In this way, you can format the end of all rows.

 

There is another possibility:VSSVersion too low

Vs.netBindVSSRequirementsVSSIn6.0cAnd later versions. IfVSSThe version is6.0cThis may occur in the following versions. We recommend that you upgradeVSSTo6.0d. To solve the problem.

References:

Http://support.microsoft.com/kb/319899/zh-cn? Spid = 1116 & SID = 76

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.