Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Pressing ‘<’ in C++ with a selection wraps it in <…>

This is implemented by adding (‘<’, ‘>’) to the smart typing pairs using the following scope selector:

    (source.c++ | source.objc++) & dyn.selection
  • Loading branch information...
commit 775e7022f064c6a96a1545619be2bfc1c34edd93 1 parent 681ba54
@sorbits sorbits authored
Showing with 54 additions and 0 deletions.
  1. +54 −0 Preferences/Typing Pairs: Selection.tmPreferences
View
54 Preferences/Typing Pairs: Selection.tmPreferences
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>name</key>
+ <string>Typing Pairs: Selection</string>
+ <key>scope</key>
+ <string>(source.c++ | source.objc++) &amp; dyn.selection</string>
+ <key>settings</key>
+ <dict>
+ <key>smartTypingPairs</key>
+ <array>
+ <array>
+ <string>"</string>
+ <string>"</string>
+ </array>
+ <array>
+ <string>(</string>
+ <string>)</string>
+ </array>
+ <array>
+ <string>{</string>
+ <string>}</string>
+ </array>
+ <array>
+ <string>[</string>
+ <string>]</string>
+ </array>
+ <array>
+ <string>&lt;</string>
+ <string>&gt;</string>
+ </array>
+ <array>
+ <string>“</string>
+ <string>”</string>
+ </array>
+ <array>
+ <string>‘</string>
+ <string>’</string>
+ </array>
+ <array>
+ <string>'</string>
+ <string>'</string>
+ </array>
+ <array>
+ <string>`</string>
+ <string>`</string>
+ </array>
+ </array>
+ </dict>
+ <key>uuid</key>
+ <string>F6AEAB37-D14E-49BF-BE1F-07883E248BFF</string>
+</dict>
+</plist>
Please sign in to comment.
Something went wrong with that request. Please try again.