Answer the question
In order to leave comments, you need to log in
Is there a feature in popular text editors to start a new line across a line?
I explain the essence of the issue:
Practically everywhere it is possible to go to a new line from the middle of the current line, for example, we print the name of the method:
void test(int i/*cursor here, press Shift + Enter in Idea*/) {
/*cursor is here*/
}
In practice, we constantly have to deal with the following situation:
void test(int i) {
/*cursor here*/
}
/*a must be here*/
I.e. you need to jump over the bracket.
Without resorting to the mouse, this can be done with arrows ... But maybe there is a more geeky way? :)
How do you personally act in this case?
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
very confusing question. in vim if you want to go one line down - j (or even just enter), two lines down - 2j; want to enter a new line under the current one - press o; move one line/paragraph forward - brackets ) or }
As far as I understand, you just described the snippet technique. There are more possibilities there.
Read habrahabr.ru/post/125355
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question