Kal*_*nam 6 c++ ide google-style-guide sublimetext
我正在使用崇高的文字3编写C ++代码。我们遵循CPP的Google样式指南。
我正在寻找使用样式指南作为参考来提供自动重入和短绒棉纸支持的任何插件。
小智 6
我刚刚尝试了https://github.com/timonwong/SublimeAStyleFormatter,它似乎工作正常。
您必须将用户设置(“ Sublime Text”>“首选项”>“ SublimeAStyleFormatter”>“ Settings-User”)编辑为以下内容:
// This is a simplified settings file that only defines the coding style of your project
{
"options_default": {
// Default bracket style
// Can be either "allman", "ansi", "bsd", "break", "java", "attach", "kr", "k&r",
// "k/r" "stroustrup", "whitesmith", "banner", "gnu", "linux", "horstmann",
// "1tbs", "otbs ", "pico", "lisp", "python", or ""
"style": "google"
}
}
Run Code Online (Sandbox Code Playgroud)
您可以使用一些有趣的选项,例如“ autoformat_on_save”,缩进等。