## Shortcuts and document type.

### Shortcuts and document type.

how can i make a shortcut like cmd (or super) + i to grab the selected text and replace it with \textit{selected text} ? and is it possible to do this shortcut work only when the document is defined as a latex document?

thank you.
bgustavo

Posts: 2
Joined: Sun Apr 03, 2011 4:22 pm

### Re: Shortcuts and document type.

Sorry for the short answer, but take a look at:

http://sublimetext.info/docs/extensibil ... ppets.html

Paraphrasing Obama, yes you can!
guillermooo

Posts: 739
Joined: Thu Jul 23, 2009 9:06 am

### Re: Shortcuts and document type.

Please be patient... the LaTeXTools plugin *will* have this functionality. FYI you can grab the most up-to-date version at GitHub:

https://github.com/SublimeText/LaTeXTools

CTRL+I (CMD-I on the Mac) is coming soon for sure. In the meantime, you can use the autocompletion system. IF you type

em<TAB>

you will get \emph{<CURSOR>}; a <TAB> will exit the braces. Similarly, "it" gives you "\textit{}" in text mode and "\mathit{}" in math mode; "bf" gives you "\textbf{}". It's pretty cool!
Marciano

Posts: 146
Joined: Fri Sep 18, 2009 2:55 am

### Re: Shortcuts and document type.

thanks for the quick replies. will look into that.
bgustavo

Posts: 2
Joined: Sun Apr 03, 2011 4:22 pm