• 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

    • Yeah, it seemed like a bunch of 2D decal assets to me, so I didn't think it would be a huge issue to replace them. Assuming, of course, that Sony didn't just decide to settle and pay the artist instead. Do we know if that happened?
    • No worries, I wasn't pointing to your post specifically at all. I was talking in general and building upon your idea.
    • This 2TB NVMe Gen4 SSD is priced just $94 and you also get a free 64GB UHS-I memory card by Sayan Sen A few days ago, we reported on Team Group's T-FORCE G50 4TB NVMe SSD that was up for grabs at just $200 thanks to a promo coupon. Sadly, that deal has expired although you can still WD's SN8100 (Gen5) and SN7100 (Gen4) offerings as they are still running the discount. If you don't have the budget for those or are shopping for lower capacity drives then Crucial's T500 Gen4 drive discount is still live, and you can get them for just $125. And while the G50 4TB deal has expired, Team Group is now offering its 2TB model at its lowest ever price and you also get a free Micro SD card with it. The Team Group G50 is also a TLC (triple level cell) NAND flash SSD, and thus the endurance on the T-FORCE SSD is quite good, as it is rated for 1300 TBW (terabytes written) for the 2TB variant. Its MTBF, or Mean Time Between Failure, is claimed at 3,000,000 hours. The operating temperature is 0~70 C. The G50 does not have a dedicated DRAM cache (only the G50 Pro SKUs have it), but since it is based on NVMe version 1.4 which supports HMB (host memory buffer) technology; thus, the drive can use system memory for caching. In terms of performance, Team Group promises sequential read and write speeds of up to 5000 MB/s and 4500 MB/s, respectively. However, the firm does not disclose random throughput metrics. Get the Team Group G50 at the link below (deal is said to be ending in less than 10 hours): Team Group T-FORCE G50 SSD (TM8FFE002T0C129) + Team Group 64GB Elite microSDXC UHS-I U3, V30, A1, Micro SD with SD Adapter, to 100MB/s (TEAUSDX64GIV30A103): $105.99 + $12 off with promo code SSETA665 (Shipped and Sold by Newegg US) This Amazon deal is US-specific and not available in other regions unless specified. If you don't like it or want to look at more options, check out the Amazon US deals page here. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. As an Amazon Associate, we earn from qualifying purchases.
    • I know what you're getting at, but Microsoft themselves have said that the Xbox Ally specifically disables a bunch of stuff from Windows to improve performance and save 2GB of memory. And that special game mode is coming to Windows 11 next year.
  • Recent Achievements

    • First Post
      Ian_ earned a badge
      First Post
    • Explorer
      JaviAl went up a rank
      Explorer
    • Reacting Well
      Cole Multipass earned a badge
      Reacting Well
    • Reacting Well
      JLP earned a badge
      Reacting Well
    • Week One Done
      Rhydderch earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      646
    2. 2
      ATLien_0
      269
    3. 3
      Michael Scrip
      218
    4. 4
      +FloatingFatMan
      184
    5. 5
      Steven P.
      146
  • Tell a friend

    Love Neowin? Tell a friend!