V
V
VMesser2018-06-08 13:46:32
Sublime Text
VMesser, 2018-06-08 13:46:32

Is there a plugin for Sublime that wraps text in the right function?

Googled, there are many wrappers, but I did not find one. Maybe it's hiding somewhere in standard hotkeys, but I didn't find it either. Or I don't know how to ask.
The situation is this:

a1=a2;
b1=b2;
c1=c2;

For example, I want to wrap b2 in parseInt.
How I see it. I select b2, I press the hot key, the input line appears at the bottom (like Emmet: Wrap With Abbreviattion), I write parseInt, the variable is wrapped - parseInt(b2).
If there are other solutions, it would be interesting to know!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Kuzovlev, 2018-06-08
@Kiyoshi

Select b2, press shift + 9 (open bracket), move the cursor and write the name of the function. Not much action required

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question