OLD | NEW |
1 # Linux Sublime Dev | 1 # Linux Sublime Dev |
2 | 2 |
3 Sublime Text is a fast, powerful and easily extensible code editor. Check out | 3 Sublime Text is a fast, powerful and easily extensible code editor. Check out |
4 some [visual demos](http://www.sublimetext.com) for a quick demonstration. | 4 some [visual demos](http://www.sublimetext.com) for a quick demonstration. |
5 | 5 |
6 You can download and install Sublime Text 3 from the [Sublime Text | 6 You can download and install Sublime Text 3 from the [Sublime Text |
7 Website](http://www.sublimetext.com/3). Assuming you have access to the right | 7 Website](http://www.sublimetext.com/3). Assuming you have access to the right |
8 repositories, you can also install Sublime via apt-get on Linux. Help and | 8 repositories, you can also install Sublime via apt-get on Linux. Help and |
9 general documentation is available in the [Sublime Text 3 | 9 general documentation is available in the [Sublime Text 3 |
10 Docs](http://www.sublimetext.com/docs/3/). | 10 Docs](http://www.sublimetext.com/docs/3/). |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 | 242 |
243 ```json | 243 ```json |
244 [ | 244 [ |
245 { "keys": ["ctrl+shift+c"], "command": "clang_format" }, | 245 { "keys": ["ctrl+shift+c"], "command": "clang_format" }, |
246 ] | 246 ] |
247 ``` | 247 ``` |
248 | 248 |
249 2. Select some text and press `Ctrl + Shift + C` to format, or select no text to | 249 2. Select some text and press `Ctrl + Shift + C` to format, or select no text to |
250 format the entire file | 250 format the entire file |
251 | 251 |
| 252 ## CodeSearch Integration with Chromium X-Refs |
| 253 |
| 254 With [Chromium X-Refs](https://github.com/karlinjf/ChromiumXRefs/) you can |
| 255 perform [https://cs.chromium.org](https://cs.chromium.org] cross-reference |
| 256 searches in your editor. This gives you the call graph, overrides, references, |
| 257 declaration, and definition of most of the code. The results are as fresh as |
| 258 the search engine's index so uncomitted changes won't be reflected. |
| 259 |
| 260 More information on Chromium X-Ref's functionality (including keyboard and |
| 261 mouse shortcuts) can be found on the [Chromium X-Refs |
| 262 page](https://github.com/karlinjf/ChromiumXRefs/). |
| 263 |
| 264 |
252 ## Code Completion with SublimeClang (Linux Only) | 265 ## Code Completion with SublimeClang (Linux Only) |
253 | 266 |
254 SublimeClang is a powerful autocompletion plugin for Sublime that uses the Clang | 267 SublimeClang is a powerful autocompletion plugin for Sublime that uses the Clang |
255 static analyzer to provide real-time type and function completion and | 268 static analyzer to provide real-time type and function completion and |
256 compilation errors on save. It works with Chromium with a script that finds and | 269 compilation errors on save. It works with Chromium with a script that finds and |
257 parses the appropriate *.ninja files to find the necessary include paths for a | 270 parses the appropriate *.ninja files to find the necessary include paths for a |
258 given file. | 271 given file. |
259 | 272 |
260 **Note**: Currently, only the Linux setup of SublimeClang is working. However, | 273 **Note**: Currently, only the Linux setup of SublimeClang is working. However, |
261 there are instructions below for Windows/Mac which you are welcome to try -- if | 274 there are instructions below for Windows/Mac which you are welcome to try -- if |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 * [Case Conversion](https://packagecontrol.io/packages/Case%20Conversion)
- | 590 * [Case Conversion](https://packagecontrol.io/packages/Case%20Conversion)
- |
578 automatically changes the case of selected text, e.g. `kConstantName` to | 591 automatically changes the case of selected text, e.g. `kConstantName` to |
579 `CONSTANT_NAME` | 592 `CONSTANT_NAME` |
580 * [Text Pastry](https://packagecontrol.io/packages/Text%20Pastry) - | 593 * [Text Pastry](https://packagecontrol.io/packages/Text%20Pastry) - |
581 Inserts incremental number sequences with multi-select | 594 Inserts incremental number sequences with multi-select |
582 * [Wrap Plus](https://packagecontrol.io/packages/Wrap%20Plus) - Auto-wraps | 595 * [Wrap Plus](https://packagecontrol.io/packages/Wrap%20Plus) - Auto-wraps |
583 a comment block to 80 columns with `Alt + Q` (was used to write this | 596 a comment block to 80 columns with `Alt + Q` (was used to write this |
584 document! ;-) | 597 document! ;-) |
585 * [Diffy](https://packagecontrol.io/packages/Diffy) - With two files | 598 * [Diffy](https://packagecontrol.io/packages/Diffy) - With two files |
586 opened side-by-side, `Ctrl + k Ctrl + d` will show the differences | 599 opened side-by-side, `Ctrl + k Ctrl + d` will show the differences |
OLD | NEW |