B
B
beduin012016-02-04 20:50:52
Sublime Text
beduin01, 2016-02-04 20:50:52

How to remove the body of an external function in Sublime?

I have a large function foo of the form:

foo
{
 bar
  {
   }
}

How to remove foo leaving bar in Sublime? Well, except for the eyes looking for the beginning and the end?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
burdin, 2016-02-06
@burdin

1. Collapse bar
2. Select the line with the definition of the function (it will remain visible) and copy it to the clipboard (control + c)
3. Collapse the function foo
4. Delete the line with the definition of foo
5. Press control + v - get your entire bar
(in I got python)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question