Questions tagged «plugin-tabular»

1
如何将C ++注释对齐以符合Google样式?
有什么方法可以使Vim格式化我的评论以符合Google cpplint的要求? 顶部不符合要求,必须进行5项更改。 将此评论保持在同一级别 之后加一个空格 // 在代码和注释之间至少添加两个空格 对齐评论 之后添加空间 // (注意:我也问这个问题在这里,有可能用表格做https://github.com/godlygeek/tabular/issues/44) 编辑:根据下面的建议,这有效: 插件=> https://github.com/rhysd/vim-clang-format .nvimrc或.vimrc配置: let g:clang_format#code_style='google' let g:clang_format#style_options = { \ "AccessModifierOffset" : -3, \ "Standard" : "C++03"}
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.