0
点赞
收藏
分享

微信扫一扫

VS代码对齐工具使用教程


目录

​​一 工具下载​​

​​二 使用文档​​

​​三 使用实例​​

​​四 对齐结果​​

一 工具下载

​​Code alignment (VS2012-2019) - Visual Studio Marketplace​​

二 使用文档

​​Align by space · cpmcgrath/codealignment Wiki (github.com)​​

三 使用实例

Ctrl + Shift + Equals:自定义对齐方式

实用对齐方式:

1)m_

2)最短单词后插入,然后空格对齐。

3)正则对齐:

,\s*(?<x>[^\s])

\s+(?<x>[^\s\(]+)\s*\(

最后配合手动空格和多列选择操作(Alt Shift )。

4)其他:

\s+(?<x>[^\s]) //Align by space

\s+(?<insert>[^\s]) //Insert at the same location

\s+(?<insert>[^\s]+)(?<compare>) //And compare at the end of the word.

四 对齐结果

VS代码对齐工具使用教程_自定义

VS代码对齐工具使用教程_正则_02

 

 

举报

相关推荐

0 条评论