Here is an incomplete stack of tricks to help you work with Chromium in Visual Studio.
You 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 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:
- Title: cpplint.py
- Command: C:\depot_tools\python_bin\python.exe
- Arguments: C:\depot_tools\cpplint.py --output=vs7 $(ItemPath)
- Initial directory: $(ItemDir)
- Check Use Output window
To create a keyboard shortcut:
- Go to Tools > Options > Environment > Keyboard.
- Select Tools.ExternalCommand1. (This assumes cpplint.py is your first external command in your Tools menu.)
- Press a shortcut key (let's say Alt+L) and Assign it.
- Press OK.
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
- Indenting radio to Smart
- Tab size and Indent Size to 2
- Check Insert spaces
Debugging visualization, macros, more
Faster Solution Loading / Intellisense
When loading larger solutions (like chrome.sln), Visual Studio can become very slow, and certain operations like Intellisense can be somewhat unusable. A very useful extension which helps manage this is VsFunnel. This extension allows you to select which projects in a solution will be loaded at solution load time, and which will remain in the "unloaded" state. Unloaded projects are not indexed by VS, so this extension can drastically speed up VS responsiveness.