Search code examples
shortcut

Sublime shortcut for ()


Is there any shortcut in sublime to put a certain part of code between (),[] or {}. I mean: select the desired part of code + shortcut, so sublime will add "(" at the beginning and ")" at the end of the selected code?

thanks


Solution

  • You can just highlight the text that you want to surround and then type the opening symbol. So if you want to surround part of the code with brackets, you would highlight that part of the code and press [.