Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Use Visual Studio Code on Chromium code base | 1 # Use Visual Studio Code on Chromium code base |
| 2 | 2 |
| 3 [TOC] | 3 [TOC] |
| 4 | 4 |
| 5 [Visual Studio Code](http://code.visualstudio.com/) | 5 [Visual Studio Code](http://code.visualstudio.com/) |
| 6 ([Wikipedia](https://en.wikipedia.org/wiki/Visual_Studio_Code)) is a | 6 ([Wikipedia](https://en.wikipedia.org/wiki/Visual_Studio_Code)) is a |
| 7 multi-platform code editor that is itself based on Electron which is based on | 7 multi-platform code editor that is itself based on Electron which is based on |
| 8 Chromium. Visual Studio Code has a growing community and base of installable | 8 Chromium. Visual Studio Code has a growing community and base of installable |
| 9 extensions and themes. It works without too much setup. | 9 extensions and themes. It works without too much setup. |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 37 "**/.DS_Store": true, | 37 "**/.DS_Store": true, |
| 38 "**/out": true | 38 "**/out": true |
| 39 }, | 39 }, |
| 40 // YCM | 40 // YCM |
| 41 "ycmd.path": "<your_ycmd_path>", | 41 "ycmd.path": "<your_ycmd_path>", |
| 42 "ycmd.global_extra_config": | 42 "ycmd.global_extra_config": |
| 43 "<your_chromium_path>/src/tools/vim/chromium.ycm_extra_conf.py", | 43 "<your_chromium_path>/src/tools/vim/chromium.ycm_extra_conf.py", |
| 44 "ycmd.confirm_extra_conf": false, | 44 "ycmd.confirm_extra_conf": false, |
| 45 "ycmd.use_imprecise_get_type": true, | 45 "ycmd.use_imprecise_get_type": true, |
| 46 // clang-format | 46 // clang-format |
| 47 "clang-format.style": "Chromium", | 47 "clang-format.executable": "<your_depot_tools>/clang-format", |
| 48 "clang-format.style": "file", | |
| 48 "editor.formatOnSave": true | 49 "editor.formatOnSave": true |
|
Nico
2017/03/03 18:28:19
i wouldn't set this; much of the tree isn't format
| |
| 49 } | 50 } |
| 50 ``` | 51 ``` |
| 51 | 52 |
| 52 ### Install auto-completion engine(ycmd) | 53 ### Install auto-completion engine(ycmd) |
| 53 | 54 |
| 54 ``` | 55 ``` |
| 55 $ git clone https://github.com/Valloric/ycmd.git ~/.ycmd | 56 $ git clone https://github.com/Valloric/ycmd.git ~/.ycmd |
| 56 $ cd ~/.ycmd | 57 $ cd ~/.ycmd |
| 57 $ ./build.py --clang-completer | 58 $ ./build.py --clang-completer |
| 58 ``` | 59 ``` |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 78 ### Enable Sublime-like minimap | 79 ### Enable Sublime-like minimap |
| 79 | 80 |
| 80 ``` | 81 ``` |
| 81 "editor.minimap.enabled": true, | 82 "editor.minimap.enabled": true, |
| 82 "editor.minimap.renderCharacters": false | 83 "editor.minimap.renderCharacters": false |
| 83 ``` | 84 ``` |
| 84 | 85 |
| 85 ### More | 86 ### More |
| 86 | 87 |
| 87 https://github.com/Microsoft/vscode-tips-and-tricks/blob/master/README.md | 88 https://github.com/Microsoft/vscode-tips-and-tricks/blob/master/README.md |
| OLD | NEW |