diff options
author | Daniel Jasper <djasper@google.com> | 2013-05-02 17:37:36 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-05-02 17:37:36 +0000 |
commit | 5f99742632926b5870ddb418211de55f24228ea7 (patch) | |
tree | da5bff0cae993971fc6f66510f596b80a50cffc0 /clang/docs/ClangFormat.rst | |
parent | 3be10542af5764237c574bcedbb923e14deda478 (diff) | |
download | bcm5719-llvm-5f99742632926b5870ddb418211de55f24228ea7.tar.gz bcm5719-llvm-5f99742632926b5870ddb418211de55f24228ea7.zip |
Basic clang-format integration for BBEdit.
Thanks to Avi Drissman!
llvm-svn: 180933
Diffstat (limited to 'clang/docs/ClangFormat.rst')
-rw-r--r-- | clang/docs/ClangFormat.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/clang/docs/ClangFormat.rst b/clang/docs/ClangFormat.rst index 1b65c2542bf..964fc84d7bc 100644 --- a/clang/docs/ClangFormat.rst +++ b/clang/docs/ClangFormat.rst @@ -81,6 +81,21 @@ This binds the function `clang-format-region` to C-M-tab, which then formats the current line or selected region. +BBEdit Integration +================== + +:program:`clang-format` cannot be used as a text filter with BBEdit, but works +well via a script. The AppleScript to do this integration can be found at +`clang/tools/clang-format/clang-format-bbedit.applescript`; place a copy in +`~/Library/Application Support/BBEdit/Scripts`, and edit the path within it to +point to your local copy of :program:`clang-format`. + +With this integration you can select the script from the Script menu and +:program:`clang-format` will format the selection. Note that you can rename the +menu item by renaming the script, and can assign the menu item a keyboard +shortcut in the BBEdit preferences, under Menus & Shortcuts. + + Script for patch reformatting ============================= |