blob: 1bbe4ffbbda3b832ea7d5e660898c4937fd2836c [file] [log] [blame] [view]
sashab4fe2e1d42016-05-27 01:17:451# Linux Sublime Dev
2
3Sublime Text is a fast, powerful and easily extensible code editor. Check out
4some [visual demos](http://www.sublimetext.com) for a quick demonstration.
5
6You can download and install Sublime Text 3 from the [Sublime Text
7Website](http://www.sublimetext.com/3). Assuming you have access to the right
8repositories, you can also install Sublime via apt-get on Linux. Help and
9general documentation is available in the [Sublime Text 3
10Docs](http://www.sublimetext.com/docs/3/).
11
12Sublime can be used on Linux, Windows and Mac as an IDE for developing Chromium.
13Here's what works:
14
15* Editing code works well (especially if you're used to it and get used to the
16 shortcuts).
17* Navigating around the code works well. There are multiple ways to do this (a
brandtr492aca852016-08-08 10:42:3918 full list of keyboard shortcuts is available for [Windows/Linux](http://docs.sublimetext.info/en/latest/reference/keyboard_shortcuts_win.html)
19 and [Mac](http://docs.sublimetext.info/en/latest/reference/keyboard_shortcuts_osx.html)).
sashab4fe2e1d42016-05-27 01:17:4520* Building works fairly well and it does a decent job of parsing errors so
21 that you can click and jump to the problem spot.
22
23[TOC]
24
25## Setup
26
27### Configuring Sublime
28
29All global configuration for Sublime (including installed packages) is stored in
30`~/.config/sublime-text-3` (or `%APPDATA\Sublime Text 3` on Windows, or
31`~/Library/Application Support/Sublime Text 3` on Mac). We will reference the
32Linux folder for the rest of this tutorial, but replace with your own path if
33using a different OS. If you ever want a clean install, just remove this folder.
34
35**Warning**: If you have installed a license key for a paid version Sublime
36Text, removing this folder will delete the license key, too.
37
38Most of the packages you will install will be placed in `~/.config/sublime-
39text-3/Packages/User`, where Sublime Text can detect them. You can also get to
40this folder by selecting `Preferences > Browse Packages...` (or `Sublime Text >
41Preferences > Browse Packages...` on Mac).
42
43### A short word about paths
44
45Certain packages require executables to be on your `PATH`, but Sublime gets the
46`$PATH` variable from a login shell, not an interactive session (i.e. your path
47needs to be set in `~/.bash_profile`, `~/.zprofile`, etc, not `~/.bashrc`,
48`~/.zshrc`, etc). For more info, see
49[Debugging Path Problems](http://sublimelinter.readthedocs.io/en/latest/troubleshooting.html#debugging-path-problems).
50
51### Editing Preferences
52
53Sublime configuration (including project files, key bindings, etc) is done via
54JSON files. All configurations have a Default config (usually provided with the
55program or package to document the available commands) and a User config
56(overrides the default; this is where your overrides go). For example, select
57`Preferences > Settings - Default` to see all the available settings for
58Sublime. You can override any of these in `Preferences > Settings - User`.
59
60Here are some settings that help match the Chromium style guide:
61```
62{
63 // Basic Chromium style preferences
64 "rulers": [80],
65 "tab_size": 2,
66 "trim_trailing_white_space_on_save": true,
67 "ensure_newline_at_eof_on_save": true,
68 "translate_tabs_to_spaces" : true,
69
70 // Optional, but also useful, preferences
71 "always_show_minimap_viewport": true,
72 "bold_folder_labels": true,
73 "draw_white_space": "all",
74 "enable_tab_scrolling": false,
75 "highlight_line": true,
cbiesinger86215cb2016-08-09 23:54:2276
77 // Mainly for Windows, but harmless on Mac/Linux
78 "default_line_ending": "unix",
sashab4fe2e1d42016-05-27 01:17:4579}
80```
81
82The settings will take effect as soon as you save the file.
83
84#### Tips
85* `View > Side Bar > Show Open Files` will add a list of open files to the top
86 of the sidebar
87* ``Ctrl+` `` will show the console; it shows errors and debugging output, and
88 you can run Python
89* `View > Distractio-Free Mode` goes into fullscreen and removes Sublime's
90 header and footer
91* `View > Layout > ...` changes the configuration of files you can open side-
92 by-side
93* `Ctrl + P` (`Cmd + P` on Mac) quickly opens a search box to find a file or
94 definition
95* `Alt + O` (`Alt + Cmd + Up` on Mac) switches between the source/header file
96* `Alt + PageUp`/`Alt + PageDown` (`Alt + Cmd + Left`/`Alt + Cmd + Right` on
97 Mac) moves between tabs
98* `F12` (`Alt + Cmd + Down` on Mac) goes to the symbol's definition
qyearsleyc0dc6f42016-12-02 22:13:3999* With text selected, `Ctrl + D` will multi-select the next occurrence (so
sashab4fe2e1d42016-05-27 01:17:45100 typing in one types in all of them), and `Ctrl+U` deselects
101* Similarly, after finding something with `Ctrl + F`, `Alt + Enter` will
qyearsleyc0dc6f42016-12-02 22:13:39102 select all occurrences of the search query, which can be multi-edited
sashab4fe2e1d42016-05-27 01:17:45103* `Ctrl + X` without anything selected cuts the current line, then move to a
104 different line and `Ctrl + V` pastes it below the current line
105
106### Setting Sublime as the default Terminal editor
107
108Add `export EDITOR="subl -w"` to your `~/.bashrc` file (or similar) to open git
109commit messages, gn args, etc with Sublime Text. Since you may want to only open
110sublime when using a non-SSH session, you can wrap it in the following:
111
112```
113if [ "$SSH_CONNECTION" ]; then
114 export EDITOR='vim'
115else
116 export EDITOR='subl -w'
117fi
118```
119
120### Installing the Package Manager
121
122The Sublime Package Manager is the way most Sublime packages are installed and
123configured. You can install the package manager by following in the
124[installation instructions](https://packagecontrol.io/installation) on their
125website. Once the package manager is installed, restart Sublime.
126
127To install a package, press `Ctrl + Shift + P` and select `Package Manager:
128Install Package` (the string match is fairly leniant; you can just type
129`"instp"` and it should find it). Then type or select the package you want to
130install.
131
132#### Mac Paths Fix
133
134There is a known bug on Mac where Sublime doesn't detect the current path
135correctly. If you're using Mac, install the package `SublimeFixMacPath` to find
136the path from your `~/.bashrc` file or similar.
137
138## Making a New Project
139
140Once you have a copy of the Chromium checkout, we'll make a new Sublime project
141with the src directory as the root.
142
143To do this, create a new file `chromium.sublime-project` (or whatever name you'd
144like) in the folder above your `src/` directory, with the following contents
145(the exclude patterns are needed - Sublime can't handle indexing all of Chrome's
146files):
147
148```json
149{
150 "folders": [
151 {
152 "name": "chromium",
153 "path": "src",
154 "file_exclude_patterns":
155 [
156 "*.vcproj",
157 "*.vcxproj",
158 "*.sln",
159 "*.gitignore",
160 "*.gitmodules",
161 "*.vcxproj.*",
162 ],
163 "folder_exclude_patterns":
164 [
165 "build",
166 "out",
167 "third_party",
168 ".git",
169 ],
170 },
171 {
172 "name": "Generated Files",
173 "path": "src/out/Debug/gen",
174 },
175 ],
176}
177```
178
179If you are working on Blink, or any other third-party subproject, you can add it
180as a separate entry in the `folders` array:
181
182```json
183{
184 "name": "blink",
185 "path": "src/third_party/WebKit",
186}
187```
188
189Once you've saved the file, select `Project > Switch Project` and navigate to
190the `chromium.sublime-project` file.
191
192### Code Linting with CPPLint (Chromium only)
193
194**Note:** CPPLint enforces the Google/Chromium style guide, and hence is not
195useful on third_party projects that use another style.
196
1971. Install the SublimeLinter package (`Ctrl + Shift + P > Install Package >
198 SublimeLinter`).
1991. `cpplint` should be somewhere on your path so that SublimeLinter finds it.
200 depot_tools includes `cpplint.py`, but it needs to be named `cpplint`, so on
201 Linux and Mac you have to make a symlink to it:
202
203 ```shell
204 cd /path/to/depot_tools
205 ln -s cpplint.py cpplint
206 chmod a+x cpplint
207 ```
208
2091. Install the SublimeLinter-cpplint package (`Ctrl + Shift + P > Install
210 Package > SublimeLinter-cpplint`).
211
212Now when you save a C++ file, red dots should appear next to lines that
213invalidate the style. You can change this behavior with Choose Lint Mode (`Ctrl
214+ Shift + P > "lint mode"`).
215
216You can also see and navigate all the linter errors with Show All Errors (`Ctrl
217+ Shift + P > "show all"`). You can also use Next Error/Previous Error (and
218their associated shortcuts) to navigate the errors. The gutter at the bottom of
219the screen shows the message for the error on the current line.
220
221You can also change the style of dot next to the line with Choose Gutter Theme
222(`Ctrl + Shift + P > "gutter"`)
223
224For a list of all preferences, see `Preferences > Package Settings >
225SublimeLinter > Settings - Default` (or `Settings - User` to edit your
226preferences).
227
228### Format Selection with Clang-Format (Chromium only)
229
230**Note:** Like CPPLint, Clang-format enforces the Google/Chromium style guide,
231and hence is not useful on third_party projects that use another style.
232
2331. Inside `src/`, run:
234
235 ```shell
236 cd /path/to/chromium/src
237 cp buildtools/clang_format/script/clang-format-sublime.py ~/.config/sublime-text-3/Packages/User/
238 ```
239
2401. This installs a plugin that defines the command "clang\_format". You can add
241 the "clang\_format" command to `Preferences > Key Bindings - User`, e.g.:
242
243 ```json
244 [
245 { "keys": ["ctrl+shift+c"], "command": "clang_format" },
246 ]
247 ```
248
2492. Select some text and press `Ctrl + Shift + C` to format, or select no text to
250 format the entire file
251
jkarlin5999edb2017-02-22 13:02:35252## CodeSearch Integration with Chromium X-Refs
253
254With [Chromium X-Refs](https://github.com/karlinjf/ChromiumXRefs/) you can
jkarlin3b704582017-02-22 14:10:48255perform [https://cs.chromium.org](https://cs.chromium.org) cross-reference
jkarlin5999edb2017-02-22 13:02:35256searches in your editor. This gives you the call graph, overrides, references,
257declaration, and definition of most of the code. The results are as fresh as
258the search engine's index so uncomitted changes won't be reflected.
259
260More information on Chromium X-Ref's functionality (including keyboard and
261mouse shortcuts) can be found on the [Chromium X-Refs
262page](https://github.com/karlinjf/ChromiumXRefs/).
263
264
sashab4fe2e1d42016-05-27 01:17:45265## Code Completion with SublimeClang (Linux Only)
266
267SublimeClang is a powerful autocompletion plugin for Sublime that uses the Clang
268static analyzer to provide real-time type and function completion and
269compilation errors on save. It works with Chromium with a script that finds and
270parses the appropriate *.ninja files to find the necessary include paths for a
271given file.
272
273**Note**: Currently, only the Linux setup of SublimeClang is working. However,
274there are instructions below for Windows/Mac which you are welcome to try -- if
275you can get them to work, please update these instructions ^_^
276
277More information on SublimeClang's functionality (including keyboard shortcuts)
278can be found on the [SublimeClang GitHub
279page](https://github.com/quarnster/SublimeClang).
280
sashab4fe2e1d42016-05-27 01:17:45281### Linux
282
2831. Install libclang-dev to get a copy of libclang.so:
284
285 ```shell
286 sudo apt-get install libclang-dev
287 ```
288
2891. Build libclang.so and SublimeClang in your packages directory:
290
291 ```shell
292 cd ~/.config/sublime-text-3/Packages
293 git clone --recursive https://github.com/quarnster/SublimeClang SublimeClang
294 cd SublimeClang
295 # Copy libclang.so to the internals dir
296 cp $(ldconfig -p | grep libclang.so | cut -d" " -f4) internals/libclang.so
297 # Make the project - should be really quick, since libclang.so is already built
298 cd src && mkdir build && cd build
299 cmake ..
300 make
301 ```
302
3031. Edit your project file `Project > Edit Project` to call the script above
jkarlin51f4e512016-07-20 04:22:02304 (replace `/path/to/depot_tools` with your depot_tools directory):
sashab4fe2e1d42016-05-27 01:17:45305
306 ```
307 {
308 "folders":
309 [
310 ...
311 ],
312 "settings":
313 {
314 "sublimeclang_options":
315 [
316 "-Wno-attributes",
317 ],
jkarlin51f4e512016-07-20 04:22:02318 "sublimeclang_options_script": "python ${project_path}/src/tools/sublime/ninja_options_script.py -d '/path/to/depot_tools'",
sashab4fe2e1d42016-05-27 01:17:45319 }
320 }
321 ```
322
3231. Restart Sublime. Now when you save a file, you should see a "Reparsing…"
324 message in the footer and errors will show up in the output panel. Also,
325 variables and function definitions should auto-complete as you type.
326
327**Note:** If you're having issues, adding `"sublimeclang_debug_options": true` to
328your settings file will print more to the console (accessed with ``Ctrl + ` ``)
329which can be helpful when debugging.
330
sashab72658fc2016-05-27 05:57:05331### Mac (not working)
332
3331. Install cmake if you don't already have it
3341. Install XCode
3351. Copy libclang.dylib from XCode to the SublimeClang/internals folder:
336
337 ```shell
338 cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages
339 git clone --recursive https://github.com/quarnster/SublimeClang SublimeClang
340 cd SublimeClang
341 cp /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libclang.dylib internals/libclang.dylib
342 # Remove i386 from the build file since XCode's libclang.dylib is only a 64-bit version
343 sed -ie 's/CMAKE_OSX_ARCHITECTURES i386 x86_64/CMAKE_OSX_ARCHITECTURES x86_64/' src/CMakeLists.txt
344 # Copy libclang.dylib to the internals dir
345 # Make the project - should be really quick, since libclang.dylib is already built
346 cd src && mkdir build && cd build
347 cmake ..
348 make
349 ```
350
3511. The rest of the instructions are the same, but when adding your project
352 settings, add these extra arguments to `sublimeclang_options`:
353
354 ```json
355 "sublimeclang_options":
356 [
357 ...
358 // MAC-ONLY: Include these options, replacing the paths with the correct installed SDK
359 "-isystem", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/",
360 "-isystem", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1",
361 "-F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/",
362 "isysroot", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk",
363 "-mmacosx-version-min=10.7",
364 "-stdlib=libc++",
365 "-isystem", "/usr/include",
366 "-isystem", "/usr/include/c++/*",
367 ]
368 ```
369
370### Windows (not working)
371
372You'll need cl.exe which can be installed with [the Visual C++ Build Tools
3732015](https://blogs.msdn.microsoft.com/vcblog/2016/03/31/announcing-the-official-release-of-the-visual-c-build-tools-2015/).
374You should have cl.exe on your `$PATH`, which you can get by running `C:\Program
375Files (x86)\Microsoft Visual C++ Build Tools\Visual C++ 2015 x64 Native Build
376Tools Command Prompt`.
377
378Then you'll need a copy of libclang.so, which can be found on the [LLVM
379website](http://llvm.org/releases/download.html). The instructions should be the
380same as Linux from there.
381
sashab4fe2e1d42016-05-27 01:17:45382## Alternative: Code Completion with Ctags
383
384For a fast way to look up symbols, we recommend installing the CTags plugin.
385
3861. Install Exuberant Ctags and make sure that ctags is in your path:
387 http://ctags.sourceforge.net/ (on linux you should be able to just do `sudo
388 apt-get install ctags`)
3891. Install the Ctags plugin: `Ctrl + Shift + P > Install Package > Ctags`
390
391Once installed, you'll get an entry in the context menu when you right click the
392top level folder(s) in your project that allow you to build the Ctags database.
393If you're working in a Chrome project however, do not do that at this point,
394since it will index much more than you actually want. Instead, do one of:
395
3961. Create a batch file (e.g. ctags_builder.bat) that you can run either
397 manually or automatically after you do a gclient sync:
398
399 ```
400 ctags --languages=C++ --exclude=third_party --exclude=.git --exclude=build --exclude=out -R -f .tmp_tags & ctags --languages=C++ -a -R -f .tmp_tags third_party\platformsdk_win7 & move /Y .tmp_tags .tags
401 ```
402
403 This takes a couple of minutes to run, but you can work while it is indexing.
4041. Edit the `CTags.sublime-settings` file for the ctags plugin so that it runs
405 ctags with the above parameters. Note: the above is a batch file - don't
406 simply copy all of it verbatim and paste it into the CTags settings file)
407
408Once installed, you can quickly look up symbols with `Ctrl+t, Ctrl+t` etc. More
409information on keyboard shortcuts can be found on the [CTags GitHub
410page](https://github.com/SublimeText/CTags).
411
412One more hint - Edit your `.gitignore` file (under `%USERPROFILE%` or `~/`) so
413that git ignores the `.tags` file. You don't want to commit it. :)
414
415If you don't have a `.gitignore` in your profile directory, you can tell git
416about it with this command: Windows: `git config --global core.excludesfile
417%USERPROFILE%\.gitignore` Mac, Linux: `git config --global core.excludesfile
418~/.gitignore`
419
420### Build a single file
421Copy the file `compile_current_file.py` to your Packages directory:
422
423```shell
424cd /path/to/chromium/src
425cp tools/sublime/compile_current_file.py ~/.config/sublime-text-3/Packages/User
426```
427
428This will give you access to a command `"compile_current_file"`, which you can
429then add to your `Preferences > Keybindings - User` file:
430
431```json
432[
433 { "keys": ["ctrl+f7"], "command": "compile_current_file", "args": {"target_build": "Debug"} },
434 { "keys": ["ctrl+shift+f7"], "command": "compile_current_file", "args": {"target_build": "Release"} },
435]
436```
437
438You can then press those key combinations to compile the current file in the
439given target build.
440
sashab4fe2e1d42016-05-27 01:17:45441## Building inside Sublime
442
443To build inside Sublime Text, we first have to create a new build system.
444
445You can add the build system to your project file (`Project > Edit Project`),
446replacing `out/Debug` with your output directory (on Windows, replace /'s with
447\s in `cmd` and `working_dir`):
448
449```json
450{
451 "folders": [
452 ...
453 ],
454 "build_systems":
455 [
456 {
457 "name": "Build Chrome",
458 "cmd": ["ninja", "-C", "out/Debug", "chrome"],
459 "working_dir": "${project_path}/src",
460 "file_regex": "^[.\\\\/]*([a-z]?:?[\\w.\\\\/]+)[(:]([0-9]+)[):]([0-9]+)?:?(.*)$",
461 "variants": [],
462 },
463 ],
464}
465```
466
467The file regex will allow you to click on errors to go to the error line.
468
469If you're using goma, add the -j parameter (replace out/Debug with your out directory):
470```
471 "cmd": ["ninja", "-j", "1000", "-C", "out/Debug", "chrome"],
472```
473
474**Regex explanation:** Aims to capture these two error formats while respecting
475[Sublime's perl-like group matching](http://docs.sublimetext.info/en/latest/reference/build_systems/configuration.html#build-capture-error-output):
476
4771. `d:\src\chrome\src\base\threading\sequenced_worker_pool.cc(670): error
478 C2653: 'Foo': is not a class or namespace name`
4791. `../../base/threading/sequenced_worker_pool.cc:670:26: error: use of
480 undeclared identifier 'Foo'`
481
482```
483"file_regex": "^[.\\\\/]*([a-z]?:?[\\w.\\\\/]+)[(:]([0-9]+)[):]([0-9]+)?:?(.*)$"
484 ( 0 ) ( 1 )( 2 ) (3 ) ( 4 ) ( 5 ) ( 6 )(7)(8 )
485
486(0) Cut relative paths (which typically are relative to the out dir and targeting src/ which is already the "working_dir")
487(1) Match a drive letter if any
488(2) Match the rest of the file
489(1)+(2) Capture the "filename group"
490(3) File name is followed by open bracket or colon before line number
491(4) Capture "line number group"
492(5) Line # is either followed by close bracket or another colon
493(6) Capture "column filename group" if any.
494(7) If (6) is non-empty there will be another colon (but can't put it inside brackets as the "column filename group" only wants digits).
495(8) Everything else until EOL is the error message.
496```
497
498### Building other targets
499
500You can add build variants to the `variants` array to have quick access to other
501build targets with `Ctrl + Shift + B`:
502
503```json
504"variants":
505 [
506 {
507 "name": "Unit Tests",
508 "cmd": ["ninja", "-j", "1000", "-C", "out/Debug", "unit_tests"],
509 },
510 {
511 "name": "Browser Tests",
512 "cmd": ["ninja", "-j", "1000", "-C", "out/Debug", "browser_tests"],
513 },
514 ]
515```
516
517You can also add a variant for running chrome, meaning you can assign a keyboard
518shortcut to run it after building:
519
520```json
521"variants":
522 [
523 ...
524 {
525 "cmd": ["out/Debug/chrome"],
526 "name": "run_chrome",
527 "shell": true,
528 "env": {
529 "CHROME_DEVEL_SANDBOX": "/usr/local/sbin/chrome-devel-sandbox",
530 },
531 },
532 ]
533```
534
535### Assigning builds to keyboard shortcuts
536
537To assign a build to a keyboard shortcut, select `Preferences > Key Bindings -
538User` (or `Key Bindings - Default` to see the current key bindings). You can add
539the build variants above with the `"build"` command, like so:
540
541```json
542[
543 ...
544 { "keys": ["ctrl+shift+u"], "command": "build", "args": {"variant": "unit_tests"} },
545 { "keys": ["ctrl+shift+b"], "command": "build", "args": {"variant": "browser_tests"} },
546 { "keys": ["ctrl+shift+x"], "command": "build", "args": {"variant": "run_chrome"} },
547]
548```
549
550For more info on custom key bindings, see the
551[Sublime Text Key Bindings Documentation](http://docs.sublimetext.info/en/latest/customization/key_bindings.html).
552
553## Other useful packages
554
555Some other useful packages that improve sublime can be installed from `Ctrl+Shift+P > Install Package`:
556
557* Git enhancements
558 * [Git](https://packagecontrol.io/packages/Git)
559 * [GitCommitMsg](https://packagecontrol.io/packages/GitCommitMsg) -
560 Performs a 'git blame' for one or more lines of code with `Alt + Shift +
561 M` (`Command + Shift + M` on Mac)
562 * [GitDiffHelper](https://packagecontrol.io/packages/GitDiffHelper) -
563 `Ctrl + Alt + G` to open all files modified since the last commit
564 * [GitOpenChangedFiles](https://packagecontrol.io/packages/GitOpenChangedFiles) -
565 `Ctrl + Shift + O` (`Command + Shift + O` on Mac) to open all files
566 modified on the current branch
567 * [Git Conflict
568 Resolver](https://packagecontrol.io/packages/Git%20Conflict%20Resolver)
569 - A GUI for resolving git conflicts
570 * [GitGutter](https://packagecontrol.io/packages/GitGutter) - Shows an
571 icon next to lines that have been inserted, modified or deleted since
572 the last commit.
573* Visual enhancements
574 * [SyncedSideBar](https://packagecontrol.io/packages/SyncedSideBar) -
575 Syncs the currently open file with the expanded tree in the sidebar
576 * [SideBarEnhancements](https://packagecontrol.io/packages/SideBarEnhancements) -
577 Adds more file management options to the sidebar context menu.
578 * [SyncedSidebarBg](https://packagecontrol.io/packages/SyncedSidebarBg) -
579 A purely aesthetic improvement that syncs the sidebar background with
580 the background color for the current theme.
581 * [Theme - Soda](http://buymeasoda.github.io/soda-theme/) - A global theme
582 for Sublime that matches the default color scheme. Needs `"theme": "Soda
583 Light 3.sublime-theme"` in your Preferences > Settings - User` file.
584* Code navigation tools
585 * [AutoFileName](https://packagecontrol.io/packages/AutoFileName) - Auto-
586 completes filenames in #includes
pastarmovj7e3be85f2016-06-07 17:53:58587 * [Open-Include](https://packagecontrol.io/packagenavigations/Open-Include)
588 - Opens the file path under the cursor with `Alt + D`
sashab4fe2e1d42016-05-27 01:17:45589* Text tools
590 * [Case Conversion](https://packagecontrol.io/packages/Case%20Conversion) -
591 automatically changes the case of selected text, e.g. `kConstantName` to
592 `CONSTANT_NAME`
593 * [Text Pastry](https://packagecontrol.io/packages/Text%20Pastry) -
594 Inserts incremental number sequences with multi-select
595 * [Wrap Plus](https://packagecontrol.io/packages/Wrap%20Plus) - Auto-wraps
596 a comment block to 80 columns with `Alt + Q` (was used to write this
597 document! ;-)
598 * [Diffy](https://packagecontrol.io/packages/Diffy) - With two files
599 opened side-by-side, `Ctrl + k Ctrl + d` will show the differences