Reputation: 747
When I select some text, for example form-col
and press [
I want to get [form-col]
but WebStorm replace selected text with [
. Is there a way to configure it?
Upvotes: 1
Views: 172
Reputation: 165108
Settings/Preferences
Editor | General | Smart Keys
Surround selection on typing quote or brace
option is enabledUpvotes: 0
Reputation: 462
I don't think that functionality exist. However you can use the Live template
functionality. It's very useful and it does pretty much the same thing.
To do this, go on : [File]->[Settings]->[Editor]->[Live Templates]->user, Click button + and add a live template like:
In you html file when you write the abbreviation what you are added, press Tab and it generate you []
and place the cursor after the first [
and now you can write your html tag [form-col]
Upvotes: 1