3

In Sublime Text, there's a feature that you can select a block of text and hit Command + Shift + L and it places a cursor at the end of each of those lines.

SublimeText Demo

I am looking for something similar in WebStorm. Sometimes it's just not feasible to go adding carets to every single line in a long file.

  • 1
    This is off topic IMO. While a good question (+1), this applies to all OS not just macOS. – JBis Nov 6 '18 at 15:39
  • This looks like an XY Problem, so can you describe in more details which problem you are trying to solve here (without already making assumptions about the one possible solution of editing all line endings at once)? Maybe using Find/Replace with regexps might solve your problem just as well. – nohillside Nov 6 '18 at 19:04
  • @jbis It's one of those questions which is on topic on several SE sites. But with WebStorm running on macOS it's perfectly on topic on AD as well. – nohillside Nov 6 '18 at 19:05
  • 1
    What do you mean by “a cursor st the end of each of those lines”? There is normally a cursor (an insertion point) at the end of a single line, only one line at a time. Are you trying to do a vertical selection of text, column oriented rather than row oriented? Try Option+dragging. By the way when searching for this kind of issue, search for IntelliJ as well as WebStorm, as both tools share the same roots and share much behavior. – Basil Bourque Nov 6 '18 at 19:53
  • 1
    @BasilBourque I've added a gif to the question, demonstrating the feature I'm looking for. – jlouzado Nov 7 '18 at 15:38

You must log in to answer this question.

Browse other questions tagged .