TransWikia.com

New keyboard shortcut in TeXStudio

TeX - LaTeX Asked by VBP on July 22, 2021

You probably know that if you highlight text with cursor, and push Ctrl+B, you can get

textbf{highlighted text}

instead of what was before:

highlighted text

I would like to create a keyboard shortcut similarly for the following:

colorbox{pink}{highlighted text}

I am using TeXStudio.

One Answer

I think the closest thing you can do is to set up a macro (Macros>Edit Macros...).

You can either select one of several keyboard shortcuts (here Ctrl+M+C),
or an abbreviation that, when you type it like a regular command, shows up in the auto-completion window marked with '(Usertag)'.

Highlighted text will be inserted at the marker for curser position %|.

enter image description here

enter image description here

Answered by schoekling on July 22, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP