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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
279 cd SublimeClang | 279 cd SublimeClang |
280 # Copy libclang.so to the internals dir | 280 # Copy libclang.so to the internals dir |
281 cp $(ldconfig -p | grep libclang.so | cut -d" " -f4) internals/libclang.so | 281 cp $(ldconfig -p | grep libclang.so | cut -d" " -f4) internals/libclang.so |
282 # Make the project - should be really quick, since libclang.so is already bu ilt | 282 # Make the project - should be really quick, since libclang.so is already bu ilt |
283 cd src && mkdir build && cd build | 283 cd src && mkdir build && cd build |
284 cmake .. | 284 cmake .. |
285 make | 285 make |
286 ``` | 286 ``` |
287 | 287 |
288 1. Edit your project file `Project > Edit Project` to call the script above | 288 1. Edit your project file `Project > Edit Project` to call the script above |
289 (replace `out/Debug` with your out directory): | 289 (replace the path to depot_tools with your depot_tools directory): |
290 | 290 |
291 ``` | 291 ``` |
292 { | 292 { |
293 "folders": | 293 "folders": |
294 [ | 294 [ |
295 ... | 295 ... |
296 ], | 296 ], |
297 "settings": | 297 "settings": |
298 { | 298 { |
299 "sublimeclang_options": | 299 "sublimeclang_options": |
300 [ | 300 [ |
301 "-Wno-attributes", | 301 "-Wno-attributes", |
302 ], | 302 ], |
303 "sublimeclang_options_script": "python ${project_path}/src/tools/sublime /ninja_options_script.py ${project_path}/src ${project_path}/src/out/Debug", | 303 "sublimeclang_options_script": "python ${project_path}/src/tools/sublime /compile_flags.py -d '${project_path}/../depot_tools'", |
sashab
2016/07/08 00:58:26
Just for default arguments sake, I would change th
jkarlin
2016/07/18 17:48:55
Done.
| |
304 } | 304 } |
305 } | 305 } |
306 ``` | 306 ``` |
307 | 307 |
308 1. Restart Sublime. Now when you save a file, you should see a "Reparsing…" | 308 1. Restart Sublime. Now when you save a file, you should see a "Reparsing…" |
309 message in the footer and errors will show up in the output panel. Also, | 309 message in the footer and errors will show up in the output panel. Also, |
310 variables and function definitions should auto-complete as you type. | 310 variables and function definitions should auto-complete as you type. |
311 | 311 |
312 **Note:** If you're having issues, adding `"sublimeclang_debug_options": true` t o | 312 **Note:** If you're having issues, adding `"sublimeclang_debug_options": true` t o |
313 your settings file will print more to the console (accessed with ``Ctrl + ` ``) | 313 your settings file will print more to the console (accessed with ``Ctrl + ` ``) |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
575 * [Case Conversion](https://packagecontrol.io/packages/Case%20Conversion) - | 575 * [Case Conversion](https://packagecontrol.io/packages/Case%20Conversion) - |
576 automatically changes the case of selected text, e.g. `kConstantName` to | 576 automatically changes the case of selected text, e.g. `kConstantName` to |
577 `CONSTANT_NAME` | 577 `CONSTANT_NAME` |
578 * [Text Pastry](https://packagecontrol.io/packages/Text%20Pastry) - | 578 * [Text Pastry](https://packagecontrol.io/packages/Text%20Pastry) - |
579 Inserts incremental number sequences with multi-select | 579 Inserts incremental number sequences with multi-select |
580 * [Wrap Plus](https://packagecontrol.io/packages/Wrap%20Plus) - Auto-wraps | 580 * [Wrap Plus](https://packagecontrol.io/packages/Wrap%20Plus) - Auto-wraps |
581 a comment block to 80 columns with `Alt + Q` (was used to write this | 581 a comment block to 80 columns with `Alt + Q` (was used to write this |
582 document! ;-) | 582 document! ;-) |
583 * [Diffy](https://packagecontrol.io/packages/Diffy) - With two files | 583 * [Diffy](https://packagecontrol.io/packages/Diffy) - With two files |
584 opened side-by-side, `Ctrl + k Ctrl + d` will show the differences | 584 opened side-by-side, `Ctrl + k Ctrl + d` will show the differences |
OLD | NEW |