• 0

Sublime Text Multiple Cursors in Netbeans, Eclipse & Visual Studio


Question

Hi,

 

This is both a cry for multiple cursors and also a question about how multiple cursors really work. Sublime Text basically changed the game in terms of programming. However, it is still a pretty editor and not an IDE like Netbeans or Visual Studio. If I am not mistaking Sublime was created by a single programmer... whereas Visual Studio, Netbeans and Eclipse has an army of people behind it. Yet... I still cannot do the following:

 

I want to select the first four occurrences of the variable $test in one attempt.

$test = "123";
echo "garbage $test";
echo "garbage garbage";
echo "garbage $test";
echo "garbage $test";
echo "garbage garbage";
echo "garbage garbage";
echo "garbage $test";

Using Sublime Text it's pretty easy... you just select $test and press CMD/CTRL+D or whatever shot-cut you assigned to select one occurrence at a time. But in Netbeans, Visual Studio and Eclipse they have rectangular selection, smart selection or whatever.... why no one created an identical multiple cursor plugin already??

 

Now the other question is... how exactly multiple cursors work? What creates those new instances of each cursor? I might be able to create a plugin of my own... and share it with the world.

2 answers to this question

Recommended Posts

  • 0

There's multiple options for this for Visual Studio already.  (the Multi-Select plugin, CodeRush, ReSharper, etc have it too).  Been a while since I've used Eclipse, I think there's a plugin called something to the effect of "MultiCursor" if I remember right, I'd be surprised if there weren't others too.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Not to sound ungrateful for your continued presence on Neowin (which I prefer) 😛  But would you consider a subscription to just have all the third party ads turned off by us? It's $2.33 per month for the ad-free subscription, but it is also there for assistance and support with all the running costs. Like everything, it is becoming increasingly harder to do this, we even try to offset it with Amazon affiliate commissions (if we could finance totally through that instead of ads, I would) 😛 
    • Honestly, I don't remember accepting or refusing cookies following a prompt, because I've accepted or refused cookies on several other sites. On the other hand, I remember seeing  ads, before the start of the available articles (on the home page), and on the right. If the trackers I've mentioned are part of the cookies I have to accept (as well as those below), trackers that are detected by my antivirus as adware during the weekly scan, they'll remain where they are. The vast majority of cookies blocked by the Host file were added by Unchecky. I'd say so, but are Doubleclick, Scorecardresearch, Opencandy, file2desktop, etc. among those that should be accepted? If not, then I'd say no.  
    • Are you suggesting Vivaldi isn't Chromium-based or that it isn't fast? In any case, Skyfrog seems more focused on customizability.
    • "They fear that this collaboration could significantly bolster China's AI capabilities" how long is this supposed to stop china?, 5 years and then become an AI giant?, china is gonna be as big as the US in AI in no time
    • yeah... I'm gonna say this aint tech news either, don't turn this site into the verge......
  • Recent Achievements

    • Week One Done
      jbatch earned a badge
      Week One Done
    • First Post
      Yianis earned a badge
      First Post
    • Rookie
      GTRoberts went up a rank
      Rookie
    • First Post
      James courage Tabla earned a badge
      First Post
    • Reacting Well
      James courage Tabla earned a badge
      Reacting Well
  • Popular Contributors

    1. 1
      +primortal
      403
    2. 2
      +FloatingFatMan
      179
    3. 3
      snowy owl
      172
    4. 4
      ATLien_0
      170
    5. 5
      Xenon
      135
  • Tell a friend

    Love Neowin? Tell a friend!