Visual Studio蛋疼问题解决(2)

本文详细介绍如何在Visual Studio中配置Astyle代码格式化工具,包括安装AstyleExtension.vsix插件、设置格式化参数及快捷键等步骤。

Astyle配置

1.下载并安装Astyle(AstyleExtension.vsix),重新启动VS;

2.工具->选项,从左侧列表找到AStyleFormatter,在右边编辑参数,参考设置:

--style=java --indent=spaces=4 --indent-switches --indent-cases --indent-namespaces --pad-header --pad-oper --unpad-paren --delete-empty-lines --convert-tabs --mode=c

 

--style=java --indent=spaces=4 --indent-switches --indent-cases --indent-namespaces --pad-header --pad-oper --unpad-paren --delete-empty-lines --convert-tabs --mode=c

3.工具->自定义->键盘

在显示命令包含里搜索as,把搜到的结果抄进去。

在下面的按快捷键里按一遍快捷键,然后点分配,确定。

 

转载于:https://www.cnblogs.com/dramstadt/p/7823535.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值