문제

When I select the word and use the surround plugin with S:

foobar

It becomes

( foobar )

How do I remove the extra spaces, so that it becomes

(foobar)

What should I place in my settings?

도움이 되었습니까?

해결책

If you type S(, it will be surrounded by spaces. However if you use the closing ) instead S) it will not be surrounded by spaces.

This applies of course to all bracket pair surroundings, <> [] {} (), not merely to (), although the behavior of S< is such that it expects a tag enclosure so only S> is able to surround as <>.

다른 팁

When you use the surround plugin you can use:

cs) instead of cs( to surround without space :).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top