首页 > 其他 > 详细

Visual Studio 代码格式化插件(等号自动对齐、注释自动对齐等)

时间:2015-04-04 19:41:29      阅读:3553      评论:0      收藏:0      [点我收藏+]

1、下载地址

插件:Code alignment  下载地址

2、介绍

Based on principles borrowed from mathematics and other disciplines, code alignment gives extra meaning to your code by lining up similar data in columns. This is something we do naturally when working with tables and spreadsheets, but unfortunately it doesn‘t get applied to code often enough.

The usual excuses are, "It‘s too hard. It takes too long. They don‘t pay me enough." With this extension, these excuses are no longer valid.

支持等号自动对齐,注释自动对齐,自定义对齐模式等功能;

3、安装方法

下载文件如下图所示:

技术分享

双击即可安装;注意:最低版本为:visual studio 2010

安装后,重启Visual Studio.可以看见工具条如下图所示:

技术分享

4、效果

自动对齐注释:

对齐前:

技术分享

操作:选中欲对齐的内容,点击Align by按钮,自定义对齐模式为  "//":

技术分享

对齐后:

技术分享

 

等号对齐:

对齐前:

技术分享

操作:选中欲对齐的内容,点击工具条上的=号:

技术分享

对齐后效果:

技术分享

4、高级功能

正则表达式

 

 

 

 

Visual Studio 代码格式化插件(等号自动对齐、注释自动对齐等)

原文:http://www.cnblogs.com/stevensfollower/p/4392618.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!