]> granicus.if.org Git - clang/commitdiff
Fix key bindings for VS 2010.
authorManuel Klimek <klimek@google.com>
Tue, 12 Nov 2013 15:25:18 +0000 (15:25 +0000)
committerManuel Klimek <klimek@google.com>
Tue, 12 Nov 2013 15:25:18 +0000 (15:25 +0000)
Set the default key-binding only in the text editor; the
global binding of ctrl-r,ctrl-f was already taken in VS 2010.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194482 91177308-0d34-0410-b5e6-96231b3b80d8

tools/clang-format-vs/ClangFormat/ClangFormat.vsct

index 507c7c9e43dba1239a3882f5f7fa6a5da70946c1..3e3e22e67d42f5523f9a7cf140f12ebacb570080 100644 (file)
@@ -88,7 +88,7 @@
 \r
 \r
   <KeyBindings>\r
-    <KeyBinding guid="guidClangFormatCmdSet" id="cmdidClangFormat" editor="guidVSStd97" key1="R" mod1="Control" key2="F" mod2="Control"/>\r
+    <KeyBinding guid="guidClangFormatCmdSet" id="cmdidClangFormat" editor="guidTextEditor" key1="R" mod1="Control" key2="F" mod2="Control"/>\r
   </KeyBindings>\r
 \r
 \r
       <IDSymbol name="MyMenuGroup" value="0x1020" />\r
       <IDSymbol name="cmdidClangFormat" value="0x0100" />\r
     </GuidSymbol>\r
-    \r
-    \r
-    \r
+\r
+    <GuidSymbol name="guidTextEditor" value="{8B382828-6202-11d1-8870-0000F87579D2}" />\r
+\r
+\r
     <GuidSymbol name="guidImages" value="{6d53937b-9ae1-42e1-8849-d876dcdbad7b}" >\r
       <IDSymbol name="bmpPic1" value="1" />\r
       <IDSymbol name="bmpPic2" value="2" />\r