Visual Studio 代碼格式化插件(等號自動對齊、注釋自動對齊等)


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、高級功能

正則表達式

 

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM