visual studio 2010
I have javascript files that I need them to be saved in UTF-8 (without BOM), every time I convert them to the correct format in Notepad++, they are reverted back to UTF-8 with BOM when I open them in Visual Studio. How can I stop VS2010 from doing that?
Another question, is UTF-8 without signature in Visual Studio the same as UTF-8 without BOM?
BOM or Byte Order Mark is sometimes quite annoying. Visual Studio does not change the file unless you save it (as Hans said).
And here is the solution to your problem: If you want to save a file with other encodings select save as and extend the save button in file dialog and select "Save with encoding". Or if you you want to get rid of this setting permanently just open File menu and select "Advanced save options" and there you should select "UTF-8 without signature" (and that also answered your last question :). Yes "UTF-8 without signature" is same as without BOM.
我已经创建了Fix File Encoding扩展,以防止Visual Studio 2010+将BOM添加到UTF-8文件。
Now with pictures.
File
-> Save As
. Save with Encoding..
. UTF-8 Without signature
-> Click OK
. Hope this saves you some time.
链接地址: http://www.djcxy.com/p/33356.html上一篇: 在保存时停止更改文件编码的视觉工作室
下一篇: visual studio 2010