找回密码
 register

QQ登录

只需一步,快速开始

查看: 33|回复: 0

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

[复制链接]

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

[复制链接]
  • 打卡等级:热心大叔
  • 打卡总天数:147
  • 打卡月天数:20
  • 打卡总奖励:146
  • 最近打卡:2025-03-25 21:45:08
Waylee

主题

0

回帖

1万

积分

仙帝

积分
18803
Waylee 2025-3-22 20:17 | 显示全部楼层 |阅读模式 | Google Chrome | Windows 10

马上注册,查看网站隐藏内容!!

您需要 登录 才可以下载或查看,没有账号?register

×

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.

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

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

3、效果
自动对齐注释:
对齐前:
001.webp
操作:选中欲对齐的内容,点击Align by按钮,自定义对齐模式为  "//":
002.webp
对齐后:
003.webp

您需要登录后才可以回帖 登录 | register

本版积分规则

雪舞知识库 | 浙ICP备15015590号-1 | 萌ICP备20232229号|浙公网安备33048102000118号 |天天打卡

GMT+8, 2025-3-26 17:54 , Processed in 0.149074 second(s), 8 queries , Redis On.

Powered by XueWu Licensed

Copyright © Tencent Cloud.

快速回复 返回顶部 返回列表