Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add support for \texttt{} snippet

  • Loading branch information...
commit 877cc7b1088f948b36f6edace8de1f8525ff5847 1 parent ae403ec
@LazarusX LazarusX authored
View
5 Default (Linux).sublime-keymap
@@ -87,7 +87,10 @@ LaTeX Package keymap for Linux
"context": [
{"key": "selector", "operator": "equal", "operand": "text.tex.latex"}],
"command": "insert_snippet", "args": {"name":"Packages/LaTeXTools/Text underline.sublime-snippet"}},
-
+ { "keys": ["ctrl+l","ctrl+t"],
+ "context": [
+ {"key": "selector", "operator": "equal", "operand": "text.tex.latex"}],
+ "command": "insert_snippet", "args": {"name":"Packages/LaTeXTools/Text monospace.sublime-snippet"}},
View
5 Default (OSX).sublime-keymap
@@ -86,7 +86,10 @@ LaTeX Package keymap for OS X
"context": [
{"key": "selector", "operator": "equal", "operand": "text.tex.latex"}],
"command": "insert_snippet", "args": {"name":"Packages/LaTeXTools/Text underline.sublime-snippet"}},
-
+ { "keys": ["super+l","super+t"],
+ "context": [
+ {"key": "selector", "operator": "equal", "operand": "text.tex.latex"}],
+ "command": "insert_snippet", "args": {"name":"Packages/LaTeXTools/Text monospace.sublime-snippet"}},
View
5 Default (Windows).sublime-keymap
@@ -86,7 +86,10 @@ LaTeX Package keymap for Windows
"context": [
{"key": "selector", "operator": "equal", "operand": "text.tex.latex"}],
"command": "insert_snippet", "args": {"name":"Packages/LaTeXTools/Text underline.sublime-snippet"}},
-
+ { "keys": ["ctrl+l","ctrl+t"],
+ "context": [
+ {"key": "selector", "operator": "equal", "operand": "text.tex.latex"}],
+ "command": "insert_snippet", "args": {"name":"Packages/LaTeXTools/Text monospace.sublime-snippet"}},
View
9 Text monospace.sublime-snippet
@@ -0,0 +1,9 @@
+<snippet>
+ <description>Monospace text</description>
+ <content><![CDATA[
+\\texttt{${1:$SELECTION}}
+]]></content>
+ <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+ <!-- <tabTrigger>hello</tabTrigger> -->
+ <scope>text.tex.latex</scope>
+</snippet>
Please sign in to comment.
Something went wrong with that request. Please try again.