Visual Studio - 打开一个控件重新组织designer.vb [英] Visual Studio - Opening a control reorganises designer.vb
问题描述
只是想知道是否有人知道这个问题的答案.我跑的是VS2015,有的同事跑的是VS2013.我们都通过 TFS 运行我们的代码以进行源代码控制,我们经常遇到这个问题.
当我们打开一个窗体或一个控件,甚至不修改它,然后关闭它时,它会完全重构*.Designer.vb文件,但不会修改任何数据(最坏的情况是简单地将True的大写/假到真/假).
这证明了一个问题,因为我们越来越担心彼此使用相同的表单.
有没有人知道这个问题的潜在修复方法,或者这是否是某种错误?
谢谢!
VB 代码使用 PascalCased 关键字.即使您以小写形式编写关键字,VS 也会自动转换为 PascalCase.
但是,有一种方法可以将关键字改为小写:
- 从 GitHub 存储库下载
此方法引用自 Anthony D. Green 的博客.更多详情:http://blogs.msdn.com/b/vbteam/archive/2015/04/02/lowercase-keywords-revisited.aspx?PageIndex=1#comments 我想知道你们团队的任何人都在使用小写关键字导致这种情况.
Just wondering if anyone knows the answer to this one. I am running VS2015, and some colleagues are running VS2013. We are all running our code through TFS for source-control, and we encounter this issue quite a bit.
When we open a form or a control, not even modifying it, then close it, it will completely restructure the *.Designer.vb file, but not modify any data (at worst, it's simply put the upper casing of True/False to true/false).
This proves an issue as we are becoming increasingly wary of working on the same forms as one another.
Does anyone know a potential fix to this, or if this is a bug of sorts?
Thanks!
解决方案The VB code use PascalCased keywords.Even though you write the keywords in lower case and VS would auto-casing to PascalCase.
However,there is a way to change to Lowercase Keywords:
- Download Glamour from the GitHub repo.
- Install it by drag/dropping the truetype font (.ttf) files in your %SystemDrive%\Windows\Fonts folder.
- Change your text editor font in the Tools > Options > Fonts & Colors dialog to Glamour.
- Select "Keyword" in the "Display Items" list and check the "Bold" checkbox.
Finally you got this as below:
This method is referenced from Anthony D. Green's Blog. More detail: http://blogs.msdn.com/b/vbteam/archive/2015/04/02/lowercase-keywords-revisited.aspx?PageIndex=1#comments I was wondering anyone of your team are using the lowercase keywords cause this.
这篇关于Visual Studio - 打开一个控件重新组织designer.vb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!