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,把搜到的结果抄进去。

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

Visual Studio蛋疼问题解决(2)

 

相关文章:

  • 2021-07-19
  • 2022-12-23
  • 2022-02-17
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-11
相关资源
相似解决方案