I'm using TeXstudio on Linux, and there is an option under the LaTeX/Font Styles menu to underline the selected text. For convenience, I set Alt + U as a shortcut so that I can quickly underline things.

I decided to change to soul's \ul instead of \underline in one of my documents because I don't want the underlined text to run into the margin (see this question). When I press Alt + U, I want TeXstudio to insert \ul{} (enclosing any selected text with the brackets) instead of \underline. How can I do this?
