Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2418)

Unified Diff: docs/vscode.md

Issue 2761363003: Update vscode document (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: docs/vscode.md
diff --git a/docs/vscode.md b/docs/vscode.md
index 692378928bcaca7d6d2822c451ef2be391994cae..6a7c67ca45fcaf69c20fa5e74ea6092f6115c83b 100644
--- a/docs/vscode.md
+++ b/docs/vscode.md
@@ -10,8 +10,10 @@ extensions and themes. It works without too much setup.
## Install extensions
-`ctrl+p` paste `ext install cpptools you-complete-me clang-format` then enter.
-For more extensions: https://marketplace.visualstudio.com/search?target=vscode
+`F1` paste
+`ext install cpptools you-complete-me clang-format chromium-codesearch`
+then enter. For more extensions:
+https://marketplace.visualstudio.com/search?target=vscode
Highly recommend you also install your favorite keymap.
@@ -29,6 +31,9 @@ settings.
{
"editor.tabSize": 2,
"editor.rulers": [80],
+ "[cpp]": {
+ "editor.quickSuggestions": true
+ },
// Exclude
"files.exclude": {
"**/.git": true,
@@ -62,15 +67,21 @@ $ ./build.py --clang-completer
1. `ctrl+p` open file.
2. `ctrl+o` goto symbol. `ctrl+l` goto line.
3. <code>ctrl+`</code> toggle terminal.
+4. `F1` - `CodeSearchOpen` open current line in code search on chrome.
+5. `F1` - `CodeSearchReferences` open XRef Infomation of current symbol.
+6. Use right click menu call `go to definition` or `peek definition`.
+7. Use right click menu call `find all references`.
## Tips
### On laptop
Because we use ycmd to enable auto completion. We can disable CPP autocomplete
-and index to save battery.
+and index to save battery. We can also disable git status autorefresh to save
+battery.
```
+"git.autorefresh": false,
"C_Cpp.autocomplete": "Disabled",
"C_Cpp.addWorkspaceRootToIncludePath": false
```
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698