In the code editor for IntelliJ 2019, I want to add a straight double-quote (QUOTATION MARK) to the currently-selected text to make it a string literal.
Is there some keystroke or menu item to make this happen?
In the code editor for IntelliJ 2019, I want to add a straight double-quote (QUOTATION MARK) to the currently-selected text to make it a string literal.
Is there some keystroke or menu item to make this happen?
Yes, it's under Settings > Editor > General > Smart Keys and is called Surround selection on typing quote or brace
.
The verified answer is correct, but if you are wondering what the shortcut is for these smart keys, highlight the text you wish to surround and press the key you wish to surround that text with.