News for hackers. Stuff that matters.
Re:Sublime Text 4 by SNosTrAnDbLe on Friday May 21, 2021 @01:24AM (#27230780)
Thanks for introducing the multi select feature in text editing. There may have been other editors before which had but Sublime was where I first encountered this and where it felt natural. It has saved me countless keystrokes! I use VS Code now but it has started getting slower and it may be time to go back to sublime!
Re:Sublime Text 4 by beermonster on Friday May 21, 2021 @02:37AM (#27231157)
IMHO, VS Code makes for a fine cross-platform IDE (for those that like IDEs) but is a bit heavy-weight as a text editor. I tend to use them both in different situations. If I want something that is FAST on very large files or projects, with superb language support for large numbers of languages and markdown - I use ST.
Re:Sublime Text 4 by bennyp101 on Friday May 21, 2021 @03:11AM (#27231309)
Yep, I switched to VSCode for general day-to-day coding, then to Jetbeans, but I still kept ST3 around for doing things with text. If I want to manipulate some text (even in large files) quickly, thats my goto tool.

New installs get ST3 installed by default, even if I don't have a plan to use it on that machine, I treat it as if it was a Notepad on windows back in the day.

Wonderful piece of software.

Re:Sublime Text 4 by klmadfejno on Friday May 21, 2021 @01:43PM (#27237312)
I use sublime 3 pretty frequently, and am aware of this feature, but haven't experienced a moment where this was useful, or at least, not more useful than just running find-replace (which is fantastic on sublime with its pattern matching and speed and what not btw). How do you use this effectively?
Re:Sublime Text 4 by atoav on Monday May 24, 2021 @02:25AM (#27261549)
I will try:

1. Select something at one line

2. Select other occurances of this something using CTRL + d

3. Move the cursors with the arrow keys, by using ALT + Arrow to jump to word boundaries HOME to jump to the beginning of the line for Ll lines that had a cursor on them, END to jump to the end, draw selections by holding SHIFT while doing any of that.

The thing is, when you got this it can be much faster than crafting up a regex in Search/Replace even if you are good with regexes.

Re:Sublime Text 4 by SNosTrAnDbLe on Friday May 21, 2021 @03:40PM (#27238925)
I like the visual feedback with the multi select where I can select all the occurrences of a variable and then change the name at the same time without leaving the editor by just using the shortcut.

For find and replace, I have to leave the editor and go to a different tool window. Also, my regex skills are sometimes lacking when I want to find something on a deadline. I only use find and replace when I have to do the same refactor across files.