朋友做的VS2005插件:等号两边值互换

 在开发过程中,给实体附值时会写如下代码(CorpWeb为实体 )

CorpWeb corpEntity = new CorpWeb();
corpEntity.corpName 
= this.txtCorpName.Text;
corpEntity.address 
= this.txtAddress.Text;
corpEntity.corpNum 
= this.txtNumber.Text;

  在开发过程中 实体值给界面元素附值 如:

CorpWeb corpEntity = new CorpWeb();
this.txtCorpName.Text=corpEntity.corpName;
this.txtAddress.Text=corpEntity.address;
this.txtNumber.Text=corpEntity.corpNum;

 

类似这样代码,需要时间手动修改转换,当附值很多的时候,过于繁琐,今天朋友做了个vs2005等号两边值互换插件,在此共享给各位博友,希望能帮助到需要的朋友.

使用方法:

  选中要进行格式化的代码段,点“工具”--〉“Sun”,即可。

转换前:

 

转换后:

插件源码下载: 太阳雪VS2005插件 

原文地址:https://www.cnblogs.com/xiaobaigang/p/1363858.html