开发者

Force enconding of all files within a Visual Studio solution directly from Visual Studio

开发者 https://www.devze.com 2023-01-06 19:07 出处:网络
Any way to convert the encoding of all the files within a VS solution (*.sln) directly inside Visual开发者_StackOverflow社区 Studio? (I am using 2008).

Any way to convert the encoding of all the files within a VS solution (*.sln) directly inside Visual开发者_StackOverflow社区 Studio? (I am using 2008).

Any Add-in for this effect?


You can easily write a VS macro to achieve that. You'd have to iterate over all projects, then for each project iterate over all project configurations (assuming the change should apply to all), and for each configuration modify VCProjectConfigurationProperties.CharacterSet to your desired encoding.

(The link is from the VS2010 documentation, but should apply to previous VS versions too).

0

精彩评论

暂无评论...
验证码 换一张
取 消