Fix File Encoding - Prevent Visual Studio from adding BOM to ...

文章推薦指數: 80 %
投票人數:10人

The free Fix File Encoding extension prevents Visual Studio 2022/2019/2017 from adding BOM to UTF-8 files. Normally, when you edit a UTF-8 file in Visual ... Home Products Blog About FixFileEncoding ThefreeFixFileEncodingextensionpreventsVisualStudio2022/2019/2017fromaddingBOMtoUTF-8files. Normally,whenyoueditaUTF-8fileinVisualStudio,itaddsthebyteordermark(BOM)sequence0xEF,0xBB,0xBFtothebeginningofthefile.Sometimesitconfusesotherapplicationsfurtherprocessingthefile.Youcanselectanencodingmanually(File-AdvancedSaveOptions...orFile-SaveAs...-SavewithEncoding...),butyouneedtodoiteachtimeyoureopenthefile: FixFileEncodingautomaticallydetectswhenaUTF-8fileisopenedinVisualStudioandsetsitsencodingtoUTF-8withoutsignature.Ifyoudon'teditthefile,itremainsunmodified.Ifyoueditthefile,itwillbesavedwithouttheBOM. FixFileEncodingletsyouconfigurewhichfilestoencodebasedonthefilepathandthefileextension.Bydefault,only.htmand.htmlfilesareprotectedfromVisualStudio: .NETregularexpressionssyntaxisusedtoselectfiles.Someexamples: Protectallfilesfromthe"m:\temp"directory:^m:\\temp Protect".html"filesfromthe"m:\temp"directory:^m:\\temp.+\.html$ Protectallfiles:emptyregexbox. FixFileEncodingv1.5.0-February23,2022. DownloadNow   Copyright2008-2022 VlasovStudio(BestinclassVisualStudioextensionsandtools)



請為這篇文章評分?