chromium VisualStudio Tricks
Here is an incomplete stack of tricks to help you work with Chromium in Visual Studio.
Faster Solution Loading / IntelliSense
Loading a huge solution (like all.sln as generated by gn) makes Visual Studio very slow, and certain operations like IntelliSense can be somewhat unusable. Some tips for speeding it up:
After opening the solution, give Visual Studio about 10-15 minutes to finish parsing files etc; it'll become more responsive after that.
Code Search
The VsChromium extension provides fast code search, among other useful features. Code from unloaded solutions (via VsFunnel, see above) is still searchable!
Column LimitYou can set up column guidelines at 80 columns or wherever you would like by installing this Visual Studio extension and using the context menu options. cpplint.py integrationcpplint.py integration makes it easy to check that a source file conforms to the style guide. To do this, just go to Tools > External Tools > Add. Specify:
To create a keyboard shortcut:
Or, make the title something like c&pplint.py, and invoke it with Alt+t,p.
Text Editor (No tabs, indentation, line numbers)The style guide requires no tabs and 2 char indentation. To set this, go to Tools > Options. On the Text Editor/All languages/Tabs page, set
Debugging visualization, macros, more |
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步