r/programming • u/ASIC_SP • May 21 '21
Sublime Text 4 released
https://www.sublimetext.com/blog/articles/sublime-text-4433
u/Hero_Of_Shadows May 21 '21
Honestly I'm tempted to buy an license simply because it's a one off purchase and not a damn subscription like everything else is these days.
I'll evaluate the feature set and see.
119
u/avmakt May 21 '21
Upgraded!
Paid $70 back in 2013, and have used ST just about every day since. Haven't tried the beta, and not really missed any features, but upgraded because it's important to support good software.
→ More replies (6)101
u/KickMeElmo May 21 '21
Technically it expires in three years, fair warning.
123
u/phire May 21 '21
It's a one-off purchase that comes with 3 years of updates.
The difference is subtle, but important for many people.
With a subscription, if you stop paying, your software stops working. With "x years of updates" you get to keep using the most recent version forever.
→ More replies (4)3
u/clgoh May 21 '21
Can you download the last version you have access to forever? In case you need to reinstall it.
23
u/phire May 21 '21
The download links are all public. Anyone can download them and run the software in evaluation mode.
The key just unlocks it.
169
u/the_poope May 21 '21
No, access to updates expires. You can use the program for eternity.
→ More replies (3)10
22
u/avmakt May 21 '21
The upgrades expire, but you're still entitled to use the already released versions until end of time.
→ More replies (1)→ More replies (5)10
u/WEEEE12345 May 21 '21
It stops getting updates after 3 years but the license itself is indefinite. All builds in the 3 year window are forever licensed to you.
43
u/2this4u May 21 '21
What, like VS Code or Visual Studio Community?
→ More replies (1)49
u/Cracknut01 May 21 '21
A lot of people seem to be allergic to Microsoft products for reasons they have read on reddit.
29
May 21 '21
Honestly VS code is awesome(coming from a sublime user), those inline code snips are awesome, especially if you do a lot of code review.
9
u/useablelobster2 May 21 '21
I use VSC (and various other Microsoft products, C# being my primary language) but the fact it's electron can be a pain.
Sublime Text is native, so much less of a resource hog. I don't blame people for preferring the latter, and it certainly doesn't make anyone a hater.
→ More replies (1)63
May 21 '21
Nonsense. Reddit didn't even exist when Microsoft launched browsers into the dark ages after killing Netscape, for starters.
→ More replies (7)19
u/Sevla7 May 21 '21 edited May 21 '21
I use a lot of Microsoft products (windows, VS19/VSC, SQL Server, C# etc) and I understand why people hate MS.
They did a lot of terrible decisions while overestimating themselves through some ridiculous display of arrogance and people obviously lost the confidence in this company, the only reason why a lot of Microsoft products are good today is exactly because people started to hate it.
The day people praise Microsoft again I bet they gonna do the same shit they did 5/10/15/20/25 years ago.
I understand that "unity programmers" sometimes see Microsoft as their "favorite football club" just because they love Xbox, but keeping this mindset when you are no longer a teenager will just do harm to everyone. Don't "love" companies, instead keep then in check all the time.
→ More replies (12)6
May 21 '21
Or they paid attention to Microsoft's behavior their first four decades as a company. I know they ❤️ open source now, but that doesn't mean I need to trust them.
→ More replies (2)→ More replies (1)10
u/Kwpolska May 21 '21
Sublime can be evaluated for free. I wouldn't buy it just to test it out, that's what the free evaluation is for.
3
643
u/beefz0r May 21 '21
Used to love sublime until they became slow on the updates. I think they were pioneers in this type of text editor. I now love VS Code and don't think I'll be able to switch back, sadly. Can it even still compete with VS Code at this point ?
169
u/CaptainCrowbar May 21 '21
How is VSCode on very large files these days? In my job I frequently have to open multi-gigabyte text files; Sublime 3 handles those wonderfully, but I seem to recall VSCode is weak on large files.
30
May 21 '21
for curiosity sake, what kind of text file is that big ? logs ?
15
u/NedDasty May 21 '21
Many companies use flat files to store data extracts for posterity and record-keeping. Also, many large programs written a long time ago require data input as text files. It's cumbersome, yes, but the technical expertise required to use a text file is virtually nil.
→ More replies (4)39
u/TheOldTubaroo May 21 '21
What sort of text files are you dealing with that are multi-gigabyte and yet not better dealt with by some form of automatic filtering before you open them?
54
15
u/Shaper_pmp May 21 '21
Huge XML exports/data-dumps with unknown/poorly-understood internal formats.
→ More replies (2)28
u/barsoap May 21 '21
You shouldn't do that in an IDE, they're simply not built for it, that is, they don't even have a concept of not loading the whole file at once, none of the syntax highlighting is line-based, etc.
You want (n)vim for that, ultimately they date back to a time where to edit a moderately large source file it wouldn't fit into memory. Or write a language server that does all that trickery, IIRC that should work out well because the server, not client, is the authority when it comes to file contents.
23
u/TheBlowJoe May 21 '21
Funnily enough, Sublime Text also loads the whole file in ram iirc (developer said so in the st4 release chat over at hacker news).
7
→ More replies (35)36
u/aniforprez May 21 '21
I've not gone gigabyte size but multi-megabyte files VSCode does fine. You won't get syntax highlighting beyond a certain size and the editor feels sluggish when scrolling especially if you have the minimap open but searching the files and doing editing was just fine
→ More replies (2)104
u/CaptainCrowbar May 21 '21
I'm not exactly reassured if you're getting broken syntax highlighting and sluggish scrolling when you're only in the megabytes.
→ More replies (10)45
u/aniforprez May 21 '21
Eh. I didn't say it was broken. It automatically turns off at a customizable limit. Plus at files that size I'm assuming it's not code you're looking at but data which you'll likely parse by using find-and-search rather than reading vaguely. Plus I'm not talking about scrolling a few lines at a time. If you pull and drag the scrollbar you're have slowdown issues and won't render interstitial text properly. Page down or arrow key scrolling worked just fine. Also I'm talking about data files that were 200-300 MB not a couple of MB where I've had zero issues
303
u/aniforprez May 21 '21 edited May 21 '21
It absolutely cannot. I know cause I tried
VSCode is an absolute beast in terms of the massive ecosystem of extensions. There's one I really love called RainbowCSV. Where I work, sometimes we get CSV files to load into the DB but the CSV files we get from the client are absolutely bloated with tons of data that I really don't need. RainbowCSV allows me to run simple SQL-type queries on the data so I can filter out the columns and rows that are unnecessary. All this in VSCode. It's absolutely beautiful. There's also a Snyk extension that runs dependency security checks in my projects, a docker extension to manage my containers, images, volumes etc at a glance, a git graph extension, direct integrations to GitHub, JIRA etc etc. Installing these extensions barely affects VSCode's startup too so I don't feel particularly guilty of "bloating" my editor
Literally none of what I described is possible with Sublime. The plugins API is severely gimped at a fundamental level. Adding any of these features is not possible at all. Git integration was half baked as of ST3 and I don't know if they improved it at all. Also factoring in how a lot of my favorite plugins were abandoned years ago as the devs switched to VSCode themselves made sticking with Sublime very difficult. It's also nagware that nags you to buy the license every 10 times you save and I know they have to eat but $99 for 3 years of updates that have been very slow so far (releases almost once a year so basically around 3 major updates and bugfixes every couple of months and major versions maybe once in 3 years) is just not worth it. If I buy with the reduced $80 price right now maybe I'll get a Sublime 5 in 2024
The biggest edge Sublime has is just how blazing fast it is during startup and usage. VSCode takes a few seconds more to startup though it's not painfully slow yet. You can also feel the few extra milliseconds VSCode takes in every interaction including moving the cursor around compared to how stupid smooth it is in Sublime which is why I wanted to move back to Sublime after switching years ago. Unfortunately Sublime is now relegated to an occasional text file editor. I cannot depend on it as a daily development driver and it's not worth it to even try. As far as native apps go, for mac, Nova by Panic (creators of Coda) is showing promise though it's not quite there yet
65
u/twinklehood May 21 '21
Did you know that sqlite can actually do the whole query on CSV dance? You can just start it up with a CSV as a data source, pretty dope.
→ More replies (1)32
u/aniforprez May 21 '21
I'm aware that's possible. It's really cool how powerful SQLite is
But for the most part I love having it all in VSCode cause I can immediately then run regex on the output to then feed into my python scripts. I don't need to learn commands or work with multiple tools
→ More replies (1)108
u/viyh May 21 '21
While I agree with your sentiment, RainbowCSV is available for Sublime Text as well: https://packagecontrol.io/packages/rainbow_csv
Sublime Text offers a huge number of plugins via Package Control, but I agree, there are a lot more quality ones available for VSCode.
18
u/aniforprez May 21 '21
Oh I was actually not aware. That's really cool though the VSCode extension gives you a dedicated "console" tab to write queries. Thanks for the info
35
u/googol88 May 21 '21
I'm glad you have a workflow that you like! For anyone reading this comment who likes the sound of the csv plugin but wants something that will work in a unix shell environment, I cannot recommend "q" enough:
8
11
u/beefz0r May 21 '21
Hey I used RainbowCSV extensively when I used to do operations ! It's indeed an incredible plugin that I wish I knew from day one. Also one of my favorite features is the 'save as admin' prompt.
I sometimes desperately install sketchy plugins with few downloads, that make the editor buggy (though a simple uninstall fixes that)
Startup speed is irrelevant when you have the editor open all day anyway.
9
u/aniforprez May 21 '21
I suppose when I say "startup" I'm also including opening new files. When compared to Sublime, VSCode feels sluggish just opening files in a new tab when selecting files from the tree. It's the boiling frog thing. It's not slow per se but when you've been working with it for so long and are happy, you don't realise how much better the other tools are in certain aspects
→ More replies (1)7
u/beefz0r May 21 '21
Haha, boiling frog is a great analogy. I work with BizTalk all day so I guess I'm trained to handle slow :-)
→ More replies (32)9
u/wastakenanyways May 21 '21
VSCode is so good that it offers a much better java dev experience than decade-long stablished full IDEs without even trying. Like, the moment Eclipse foundation released the beta of the java extension i jumped right in. Had some minor inconveniences for a few months and then it got so stable that going back to Eclipse and even IntelliJ seemed like a loss.
→ More replies (4)29
u/ihateclowns May 21 '21
Funny you say that, for me it was exactly the opposite. I'm using IDEA Ultimate at work for backend (Java) and frontend (React + Typescript) work. I tried to switch to VSCode but couldn't. There were so many things that I was missing from IDEA (which I didn't know I was missing until I didn't have them anymore) that I went back after a week or so.
→ More replies (8)9
u/NAN001 May 21 '21
Can it even still compete with VS Code at this point ?
As being a text editor most definitely, but since it appears people are using VS Code to edit multicolor CSVs on their lunar base using deep space SSH with ascii video collaboration enabled I guess it doesn't compete.
22
u/Serializedrequests May 21 '21 edited May 21 '21
Well if you don't want/need heavyweight language servers and CLI tools running, it's still a killer text editor. Unfortunately those crash prone memory hog language servers really do help sometimes, but you have to admit that VSCode extensions can be a bit jank. Ask me how much I enjoy installing rls only for it to require a different version of rust than my project, and then to freeze the screen every character I type.
I use ST for notes and editing Cloud Formation templates because none of the VSCode extensions seem to help much and ST just gets out of the way. I also keep a ST window open on some projects I only refer to rarely because it costs me nothing.
→ More replies (3)28
u/LuciferK9 May 21 '21
rustls
I suppose you mean
rls, asrustlsis a TLS library.If that's the case, then you should definitely switch to
rust-analyzerwith the extension of the same name. The extension namedRustis not as good asRust Analyzer.Rls is deprecated and rust analyzer will become the official language server.
→ More replies (1)73
u/Carighan May 21 '21
Aren't they fairly different?
Sublime is primarily a text editor. I would compare Notepad++, or just using nano or so. Being not based on Electron, it's UI actually feels speedy, it executes actions the moments you click or press a button instead of 100-200ms later.
VS Code is a hybrid between an IDE and text editor. The massive extension ecosystem makes it capable of supporting many development tasks with smart complete/hinting/execution. You buy yourself this automation with a laggy UI because the whole thing is a webpage rendered in a prepackaged browser, not a native piece of software.
It's just a different use case, IMO. I use IntelliJ as my IDE + Notepad++ for editing text, so I can't really find a use for something like VS Code that does both a bit but none really well.
But OTOH if your IDE use cases end at VS Code, you'll on the flipside not find a use for a dedicated text editor as there's too much overlap.39
u/the_poope May 21 '21
No they are not different. VS Code and SublimeText are very comparable. SublimeText also comes with an extensive package manager for plugins that enable IDE features like git integration, code linting, auto-completion, and a shit ton of other stuff.
The only difference is that many of the plugins got more backing in VSCode so they are more polished and feature complete, due a larger community working on them. It would be nice if the Sublime people spent some time on the most used and critical plugins so that it is not left to volunteers.
33
u/StillNoNumb May 21 '21
The only difference is that many of the plugins got more backing in VSCode so they are more polished and feature complete, due a larger community working on them.
Much more importantly, because the VSCode plug-in API is so much more convenient. Having worked with both, Sublime felt like I was hacking my way through, while in VSCode I felt like they thought about everything.
16
u/thepinkbunnyboy May 21 '21
And, of course, this really only became true because it had the backing of a massive company that could afford to throw an entire team (devs, product managers, and QA) at something they gave away completely for free. Not that this is necessarily a bad thing, although it does feel a little... "huge tech company squashes out competitors because they're huge" in a way.
→ More replies (1)12
u/the_poope May 21 '21
It has become extremely hard and opaque to figure out just how exactly these big corporations make money. Like what is the business case on VS Code? Is it to get more people to develop for Windows, and thereby sell more Windows licenses? Likely not. Is it to get people to use GitHub that they now own? Dunno, maybe? Is it to later introduce some paid features? Who knows?
The thing is, they manage to have an extremely high profit margin on their cash cows (Windows, Office, Outlook, Exchange) because their customers are locked in. They can then use all that profit on anything, really, without risk, in hope that it will one day generate more profit.
There was a case in the Netherlands I think, where IKEA got a big fine for breaking competition laws because they were selling cheap hot dogs at a net loss to lure in customers to their warehouses. Apparently due to the Holland or EU law, companies are not allowed to run businesses outside their main industry at a net loss giving other companies unfair competition. I wonder if the same rules apply to Microsoft, Apple and especially Google.
→ More replies (5)66
u/aniforprez May 21 '21
I think the reason people compare them is during late 2000s-early 2010s Sublime absolutely was where VSCode now is. It had a vibrant and amazing plugin ecosystem, great support and a good community especially for dev in languages where an IDE was not needed like JS, Python etc. A ton of people were switching from other editors to ST2 cause of how powerful an editor it was becoming. I remember Brackets and, later, Atom coming out around that time. I tried using Brackets but it wasn't particularly good. I switched to Atom and then switched back cause Atom sucked ass and was slow as shit
VSCode pretty much dethroned Sublime overnight with a massive amount of work put above and beyond what Atom had done especially with regards to speed and the amazing extension API. I was watching devs abandon sublime plugin development almost live and that prompted me to make the switch
→ More replies (2)13
2
u/milanove May 21 '21
I haven't seen Notepad++ mentioned much in here which is kinda odd considering how it's felt like the goto text editor for corporate sw dev teams and IT departments, when you just don't need an ide. I think almost every dev machine I've ever used had Notepad++ preinstalled by IT.
So what happened? Did most developers just switch to Mac, so nobody bothered to keep making more plugins for Notepad++, causing it to lack features of sublime or vscode? Or is it just no longer hip since it's an older app?
→ More replies (1)6
May 21 '21
This right here.
Just wait until VSCode becomes a bloated beheamoth in 5 years then it'll be really obvious what it has become.
Yes it started as a text editor. But users want more. They want an IDE without the IDE. Well, guess what, eventually you get an IDE that way.
All it really did was give a lighter weight variant of VS so people that use VS as an overblown text editor have less overhead to complain about.
Until, you know, they end up with all of those things back in VS Code and we start the cycle over yet again. Sigh.
→ More replies (12)6
May 21 '21
Vscode is memory hungry. On computers with limited resources, sublime is much more suitable.
3
u/schmirsich May 21 '21
I just use them for different things now, but I use both. VSCode is way more of an IDE than a just text editor and if I simply want to have a look at some text file, it'll open in Sublime by default, while every project bigger than a couple of lines is developed in VSCode.
37
u/PL_Design May 21 '21
Yes. Easily. Because it's not a slow and buggy Electron app. Compared to Sublime, VS Code might as well be Eclipse.
43
→ More replies (11)2
3
u/piusbnsl May 21 '21
If you have decently modern system with decent specs, then the vscode is the absolute best. But if you have a weak machine and you need to have multiple windows of different projects opened at same time, then there is nothing that come close to sublime performance.
3
u/arkasha May 21 '21
I think "they" is one person. I was annoyed at the slow pace as well but I kinda get it.
3
u/ApatheticBeardo May 21 '21
Can it even still compete with VS Code at this point ?
Define "compete".
As a text editor, Sublime Text already shits all over VSCode as it is, but I'm not sure VSCode is even trying to compete in that space, it's more of wannabe IDE.
→ More replies (38)2
u/gullevek May 21 '21
I love Sublime Text. It is amazing. It is fast. But VS code ate it and it’s lunch and dinner and everything else.
VScode is horrible slow and a memory hog. But it let’s me do stuff that Sublime Text never will.
Remote connect via SSH to a host and work there like I am logged in at that host. This is something I rely and more and more since I work from home because using SublimeText via SMB on a shit slow VPN is pretty much useless. Don’t care how fast it is …
Spent a view days adjusting keyboard shortcuts and theme to my sublime text layout and year. Most coding I do in VScode.
Doubt SublimeText 4 (or future releases will change that)
243
90
u/needstobefake May 21 '21
I’m very grateful towards them for having invented multi-select paired with lighting-fast fuzzy global search. I was a ST die-hard fan until 2019, when I finally switched to VSCode.
It has a ST-mode to match shortcuts and stuff that maps it closely enough. It feels a bit slower, but I can’t find the feature set anywhere else. Git integration, terminal, debugger, plethora of plugins, customizable to the core... you can’t beat open source on that, especially when it’s quite nicely backed up by a big company.
I’ll give ST-4 a try, maybe even get the license, but I can’t see myself completely switching back again, unless they have invented telepathic code or something.
22
u/mrbeehive May 21 '21 edited May 21 '21
I’m very grateful towards them for having invented multi-select
I think "select next instance with multi-cursor" (Ctrl-D) is my favorite text editor hotkey ever. I don't write code in Sublime anymore, but it's my default text editor on every platform and it'll probably stay that way for a long time.
12
u/needstobefake May 21 '21
My favorite is Cmd+Ctrl+G (Mac), to select and edit all instances of the current selection. I don’t remember the equivalent on Linux and Windows.
I remember the G because in my head it’s an abbreviation of “Gotta-select-em’-all”.
14
u/malachias May 21 '21
My shortcut for this was previously Ctrl-D-D-D-D-D-D-D-D-[...]-D-D. Yours is a lot nicer.
→ More replies (5)0
→ More replies (6)6
u/needstobefake May 21 '21
Yeah, base app alone ST wins hands down.
VSCode winning point is the plug-in ecosystem and easy configuration sync between computers. I love Live Share too, but unfortunately few coworkers use it. They didn’t see the light yet.
4
u/NaoMeLevemASerio May 21 '21
Does anyone know of a way to do a *faster* mass search replace on large files using RegEx?
I like Sublime, but this is the only item I cannot perform satisfactorily.
It usually takes more than 10 minutes when I do a mass search/replace.
11
u/ASIC_SP May 21 '21
Yeah,
sedis the best choice (especially if your input is ASCII so that you can useLC_ALL=C sed '..'If you need better regexp features, there's
perland new tools likesd(based on rust)27
6
145
u/Kiyiko May 21 '21
For a limited time, we're reducing the price of Sublime Text from $99 USD to $80 USD.
It was $80 yesterday. This is just another way of saying "we're increasing the price to $100 in 10 days"
I remember this being $59 and thinking that was expensive. Who's actually paying for this, especially as they keep bumping the price up as the years ago by?
55
u/ssrobbi May 21 '21
I’m perfectly willing to pay that for a text editor I use every day.
→ More replies (10)57
u/Serinus May 21 '21
If it were $20 I'd have already bought it.
But then again I mostly only use the dark mode and multiple cursors and don't touch 90% of the functionality. So maybe I'm not the target audience.
→ More replies (17)21
8
u/sm2345 May 21 '21
Standard price creep on everything maybe.
16
15
u/Sonaza May 21 '21 edited May 21 '21
They seem to also have raised the license upgrade fee. I remember upgrade from 2 to 3 being $30, now this time 3 to 4 is $70!? What? Almost the same as buying the software again rather than an incremental upgrade.
15
u/templarvonmidgard May 21 '21
I actually bought it 5 years ago for 70 USD, and now, I bought it a second time for 80 USD.
This is a high qualitysoftware product that is worth that price. I can't even count how many hours it's snappy UI and regex find+multiselect+edit workflow has saved for me.
2
u/Normal-Math-3222 May 21 '21
Honestly, I bought an individual license because I use it and love it, in my mind it was like contributing to someone’s patreon. Like others have said I don’t use it as heavily as I use vscode now, but I’m still happy with my purchase.
2
u/ipha May 21 '21
The price is pretty disappointing. I happily paid $70 for it years back, but now with vscode available for free I doubt they're getting new customers.
3
u/Kiyiko May 21 '21
Imo it should be like $20 - they're completely shutting out the hobbiest demographic that doesn't make a living off their text editor. No hobbyist is paying $100 for a text editor that's realistically freeware
3
u/Isvara May 21 '21
$99 is crazy for a text editor, especially one that sees so little development. I know it's just a one-off payment (well, once every few years), but the $149/year I pay for all the JetBrains IDEs seems like much better value.
→ More replies (7)6
u/the_poope May 21 '21
We have licenses at work. 99$ for a perpetual license isn't much compared to e.g. JetBrains products which would be at least 200$ per year.
52
u/ric2b May 21 '21
The amount of features you get from JetBrains isn't even comparable, it's like saying a bike isn't expensive because this helicopter costs a lot more.
→ More replies (3)4
→ More replies (5)10
u/WormRabbit May 21 '21
Jetbrains also sells a perpetual license with a 1 year of upgrades included. And $200 is the cost of All-products Pack which includes literally every IDE that they release. A license for IDEA will cost you about half of that, and most other IDEs cost even less.
→ More replies (4)
26
u/lastcalm May 21 '21
After installing Sublime Text 4, my menu bar is no longer visible. Ctrl+Shift+P and searching for "menu" shows nothing related to showing/toggling menu.
Does anyone know how to get the menu bar back?
40
→ More replies (1)3
u/riffito May 21 '21 edited May 21 '21
Others already pointed out how to get it back... as an alternative, you could leave the new design enabled, and just hit ALT to show the menu (vertically this time, which I find helps with keyboard-only navigation).
53
133
u/adit07 May 21 '21
i used to use sublime before but now switched to vs code. Curious to know why people are still using this?
243
u/Reptile00Seven May 21 '21
I use vscode for coding but sublime for all other text editing purposes. It feels much faster/lightweight.
→ More replies (9)55
u/floghdraki May 21 '21
Basically same and for making notes. SL is like notepad for me. Also sometimes it's just old habits.
But yeah, I have no reason to update to 4. Maybe at some point I'll find some alternative lightweight editor since it is small annoyance entering the license on every new installation.
Seems like they realized their mistake they made with 2 -> 3 upgrade and licenses expiring. They really spent a lot of goodwill they had generated with that move. My friends had just bought SL2 licenses before 3 came and suddenly they became obsolete.
37
u/christophski May 21 '21
I tried to switch to vs code but found it laggy compared to sublime and tries too hard to predict what I want usually failing
65
21
u/progrethth May 21 '21
Sublime text is much faster and gives a very nice and responsive feeling when using it. The only bad thing about Sublime is the poor quality of the plugin ecosystem.
50
u/Silhouette May 21 '21
Curious to know why people are still using this?
I tried VS Code a few times. I just didn't get on with it. It felt like it was fighting me all the time, unlike every other major editor I have ever used and the complete opposite to the feeling I had when I first used ST.
One thing that put me off was that I ran into unhelpful defaults for many things and was often having to figure out why and then visit the huge settings page before I could get on with any real work. And these were not obscure details, they were things like not maintaining the layout when closing files so everything went back to one huge pane by default -- useless on a large monitor.
VS Code seemed very laggy at times. It wasn't consistent, but it was very noticeable. And this was not running on some 10 year old laptop, it was a workstation-class beast.
For all the talk of powerful customisation, something I did several times with ST was write a language file for a custom format I was working with in just a few minutes, but I never found a way to do that quickly with VS Code without needing a whole build process and extra tools. It didn't seem to be possible to quickly import all my existing language files either.
Then there were all the suggestions, which I seemed to be cancelling far more than accepting. It brought back fond memories of Clippy. No, wait, everyone hated Clippy.
Basically, VS Code felt like it was Jack of all trades, master of none. It seems to want to be an IDE and a shell and a Git front end and a kitchen sink, but to get those things you need to download 153 different extensions, with few guarantees about either safety or robustness.
Sometimes I just want a good programmer's editor, not the love child of 1990s era MS Word and the modern JS ecosystem that inherited the worst parts of both. Almost always, really. And for me, ST found a good balance with that, and VS Code just didn't.
YMMV of course. Editors are the ultimate example of personal preference, and whatever one dev dislikes, another might find ideal.
72
u/mearkat7 May 21 '21
I use both. Sublime is a lot faster and considerably better at dealing with larger files in my experience.
→ More replies (14)6
u/TimeRemove May 21 '21 edited May 21 '21
If I'm hacking away at large files Notepad++ is my go-to.
Show Symbols -> Show All Characters
Extended & RegEx Search/Replace
Encoding menu (e.g. BOM killing)
Mime Tools
Although I do pay for Beyond Compare too, since I haven't found anything better at that specific task on Windows.
→ More replies (1)3
u/AttackOfTheThumbs May 21 '21
Have you heard of our lord and saviour kdiff?
I didn't much like beyond compare, I didn't find it did better than even the compare plugin for n++. Kdiff however is great. Three way compare is awesome, use it all the time, folder compare rocks, hotkeys are good, and there's some regex you can use too
27
22
u/BobFloss May 21 '21
It starts up instantly, so if you have an idea to write there's no hurdles in your train of thought. The find dialog is bigger as well. You can get most of what VS Code has just by using a language server plugin for a lot of languages, but the built-in indexing is also nice for opening up a C(++) project and navigating around for a couple minutes to get a feel without having a heavier analysis engine running. Additionally, multi cursor editing works better on large files.
→ More replies (3)10
62
u/cguess May 21 '21
Personally I just despise the idea of Electron apps as a default, and try very hard to use anything that’s native over what is, essentially, a chrome browser.
That in addition to it being way better for speed, memory and battery on my 2015 MacBook Pro, and a small indie shop of developers over Microsoft.
24
u/regular_lamp May 21 '21
I didn't really pay attention to how these are implemented until I figured I'd try to build vscode on my raspberry pi 400. There is a repo build for Raspberry OS but not for 64bit ubuntu. I had to create a sizeable swap file because apparently 4GB of RAM are insufficient to build a text editor these days...
4
5
u/maxinfet May 21 '21
Mostly for the regex searches, the way it does multiline searches is a really beneficial for searching through our entire Depot.
5
u/Enemiend May 21 '21 edited May 21 '21
Some extensions are not the same for VSCode, although it does have much more extensions overall. There are a few extensions for Sublime Text that make it integrate very very nicely with LaTeX. The Latex extensions for VS Code didn't work quite as well for me. To be honest, it's been a while since I tried the VS Code latex extensions, so they probably improved by now.
5
27
u/Carighan May 21 '21
VS Code feels really really laggy to use, IMO. Like all Electron apps there's this noticable 100ms or so delay in everything. Every UI interaction, every click, even typing a letter into the text field has a short but consistent delay.
22
u/drysart May 21 '21
If you're getting a >100ms delay with VS Code, it's probably related to your GPU drivers. You can improve performance by launching with the
--disable-gpucommand line argument. (And blame goes to your video drivers even moreso if you say you're seeing this in all Electron apps.)In normal operation, VS Code's key-to-screen latency out of the box is typically between around 15ms to around 60ms; depending on whether the file type you're editing has a linter.
→ More replies (4)5
3
u/Kiloku May 21 '21
It also takes a billion years at startup to load whichever language-specific plugins and features you'll need.
4
11
u/dinesh777 May 21 '21
When you need performance from an editor, like if you have 5 years+ old laptop or pc. try using vscode in that.. But vscode is great when it comes to features and ease of use with any language
→ More replies (4)→ More replies (18)5
7
u/thebuccaneersden May 21 '21
I wonder if they fixed that weird bug where, if you detach a tab from a current window and drag it to a very specific region of the screen and drop it, that window disappears into a black hole with it and its contents never to be found again...
Happens in both Subl 2 & 3. At least on a Mac. Never tested this on any other platform.
→ More replies (4)
6
u/DLMousey May 21 '21
Even if you're a die hard vscode user you should be congratulating the ST team, competition makes everything better for everyone :)
Congratulations ST team from your friendly resident jetbrains shill
15
u/FoldLeft May 21 '21
I hope this nails typescript support, then I can leave vscode
6
u/TheBlowJoe May 21 '21
You can set it up to be a decent TS Editor (almost a full IDE I'd say) with a few packages.
See here: https://www.reddit.com/r/programming/comments/nhjz93/sublime_text_4_released/gyy0jw4?context=1
14
May 21 '21
Congratulations Sublime Text!
Sadly I don't think I will be able to go back because I'm too used to the inbuilt terminal of VS Code that Sublime Text does not seem to have.
7
u/DisinhibitionEffect May 21 '21
There's a great plugin for that:
https://packagecontrol.io/packages/Terminus
It works pretty well with Sublime's multi-column/row layout.
I've yet to find a git integration that works as well as what VSCode has though.
6
u/BoxDimension May 21 '21
In my experience, terminals baked into editors are universally worse than most any dedicated terminal emulator. Usually the need for a baked-in terminal stems from inefficient window management; combine a good text editor with a good terminal and a tiling window manager, problem solved. Unless the VSCode terminal has some magic integrations? I'll admit I haven't used that program long enough to try anything advanced.
→ More replies (2)0
May 21 '21
[deleted]
5
u/neutronbob May 22 '21
...except performance. You might not care about performance, of course, but for those of us who do, ST is in an entirely different league than VS.
5
May 21 '21
I would consider switching/buying, but I have two questions:
does it have a decent vim mode?
does it support loading VScode extensions (like coc.nvim) ?
5
u/DLMousey May 21 '21
Don't know about loading vscode extensions, but there's a pretty damn good chance you'll find an equivalent in packagecontrol
3
u/BoxDimension May 21 '21
It does have a decent vim mode (vintage package).
No idea what that is, sorry
2
u/uni_ca_007 May 23 '21
If the built in vim mode is not sufficient, you can take a look at these
https://github.com/lunixbochs/ActualVim https://github.com/NeoVintageous/NeoVintageous
→ More replies (1)
19
u/MrChocodemon May 21 '21 edited May 21 '21
But why is it now 99$ every 3 years, when before that, it was 70$ for a new license which was valid for a lifetime and upgrades where ~30$?
We are supposed to be paying more than 3 times the upgrade cost, per upgrade...
4
u/glider97 May 21 '21
Well, if you think about it, the price has stayed the same, only it’s three years of upgrades now not infinite. So if ST5 releases within three years (good joke, I know) then you won’t have to pay a dime.
It’s still a lesser deal than before as you’ll have to pay the full price again after three years of you want ST5, but coupled with an infinite free trial, it’s much better than the subscription model IMO. Also, I’m guessing the three people behind this need to eat so I’m fine with this price bump for once.
9
u/MrChocodemon May 21 '21
Previously 90$ would get me 3 major version upgrades, now it gets me 3 years of 'maybe updates'.
I wouldn't call that even close in value.
→ More replies (2)6
u/foursticks May 21 '21
Wait people are paying?
5
u/MrChocodemon May 21 '21
I bought ST2 and upgraded to ST3, but now I am not sure if I will buy a limited time license for ST4
2
33
u/karrhikey97 May 21 '21
Am i the only one stuck onto notepad++?
66
u/Mikkelet May 21 '21
I loathe the design of NP++. It's so uninspiring, doesn't get me excited to code
59
u/codescapes May 21 '21
NP++ is like your grandmother, you're meant to show a little more respect dammit!
12
8
u/integralWorker May 21 '21
NP++ is great for reading text data, esp. if your work machine is low memory. Otherwise it's totally underwhelming for writing much
→ More replies (1)3
u/badsectoracula May 21 '21
Funny you mention that because the main reason (aside from price of course) i prefer N++ over Sublime is that i like N++'s design more as it uses native (or at least Windows-like) controls everywhere whereas i do not like Sublime drawing its own controls that do not fit anything else on my desktop (even apps that draw their own controls) :-P.
I do really dislike the way N++ handles custom language syntax highlighting though.
→ More replies (1)9
u/WormRabbit May 21 '21
"Excited to code"? Does VsCode give you back massage or something?
10
u/Mikkelet May 21 '21
If you know, you know. I have to stare at it for 8 hours a day, so it better be real appealing to the eyes and not look like a 90s java application
→ More replies (1)7
u/Denvildaste May 21 '21
I dislike how naggy NPP is by default, lots of modal popups that requires a decision while I'm just trying to get work done.
2
u/Saigot May 21 '21
I love notepad++ for quick debugging notes, diffs, config and log files but for serious code editing I want something else.
3
u/idfk_idfk May 21 '21
I still love NPP. I've switched to PyCharm for debugging my python projects, but NPP is best for RegEx searches and note taking. I agree with the other folks weighing in, though. The UI is clunky. IMO, though, VS Code has worse UX with so many features hidden away. Seems like the only way to learn how to configure it properly is to search google. There was a time where you could find out how to configure an application on your own by scanning settings menu options. Sigh.
→ More replies (3)2
4
u/taw May 21 '21
With so many free similar editors with stupidly many extensions, what's even Sublime's advantage these days?
6
u/samarthraj11 May 21 '21
I dont even use sublime text but still this makes me happy xD
→ More replies (3)
8
u/Dan_Arc May 21 '21
Is there a discount for owners of 3?
17
u/PM_ME_YOUR_TORNADOS May 21 '21 edited May 21 '21
It's free if you've been a license holder for ST3. I've been using it. Cash money.
→ More replies (4)20
u/cryptoknight81 May 21 '21
Not entirely correct. The stable version of ST4 "requires" an upgrade if you have an out-of-date ST3 license, as they have moved to a subscription model for it. However, the only notice you see for an expired license is in the title bar (no popups).
Right now there appears to be a $10 discount for upgrades.
→ More replies (1)
3
6
4
u/flexible May 21 '21
Al good and everything but what about extensions. Will everything work or I’ll have to lose a day?
9
2
u/Lulzagna May 21 '21
I still use sublime because of how fast it works with large files and it's regex capabilities.
2
2
u/hackmagician May 21 '21
anyone know if the dark theme for sublime 4 is available in VS code and if so what is it called?
4
2
2
u/nickdavies07 May 22 '21
“Modifier key taps can now be used as part of a key binding. For example, ["ctrl", "ctrl"] will trigger when Ctrl is pressed twice without pressing any other keys in between”
This was one of the main reasons I stuck with PHPStorm for so long. So used to hitting SHIFT SHIFT and CTRL CTRL for quick actions. Could potentially be a perfect opportunity for me to check this out.
3
u/BradChesney79 May 21 '21
What sublime did best for me that made me buy it was handling large files. If I needed to open a database dump to create a dev/test seeder script, Sublime was my go to.
3
u/eshinn May 21 '21
I know most have switched to VSCode, but I went to Vim -> nVim.
Since then, I’ve gained loads of muscle memory and have tried VSCode with the vim bindings. Still not even close to being able to move around as I can in neovim.
2
2
u/Roar_Im_A_Nice_Bear May 21 '21
I love sublime, in college I used it to take my notes in markdown. However I hate the fact that when the working directory is a bit large, it suddenly requires a lot from the processor and my laptop fans go VRRRRRRR
2
1
u/Kevinbfox May 21 '21
The first stable release of Sublime Text 4 has finally arrived! here are some new major features that will significantly improve workflow and a countless number of minor improvements across the board.
1
u/Denvildaste May 21 '21
I like Sublime Text but it saddens me that they still don't have RTL languages support.
→ More replies (3)
1
1
u/Dotz0cat May 21 '21
Sublime is a good editor. Rajio_gtk was made almost entirely in a random dev build of sublime
1
u/SemiLatusRectum May 21 '21
It seems like at some point there was this great debate between sublime, vscode, and atom. It seems pretty clear that people in this thread prefer vscode to sublime. Can atom at all compete with vscode anymore?
1
u/NotSteve_ May 21 '21
Switching from VSCode (VSCodium specifically) simply because of the amount of input lag I get with the vim plugin. ST4 lacks a few features like OOB linting but it already feels so much quicker than VSCode was for me.
2
u/530farm May 23 '21
What vscode vim package did you use and what vim are you using in sublime? I’m on the same boat, but not sure sublime will be able to compete with VS in terms of TS/JS
→ More replies (4)
1
u/Nix-X May 21 '21
Upgraded from ST3 just now, no regrets! Purchased the original license back in 2014, and have been using it regularly across many platforms (Windows, Mac, Linux) ever since. Super happy with the native support for JS and TS now. Only thing a bit bummed about is that we won’t get updates for this 4.x version after 3 years, but I can live with it.
1
1
u/Andy-Kay May 21 '21
Just yesterday I clicked "Check for updates" and started wondering why version 3 hadn't been updated for so long. And wow.
1
1
u/Serializedrequests May 23 '21
I'm confused as to why my old license seems to be valid for ST 4 on Mac, but not Windows. 😕
1
u/Illustrious_Fix1731 May 24 '21
I was a die hard fan and user of ST since the beginning. I loved the speed, later on I loved the plugins it was my text editor/light IDE. Made my own theme and color scheme the way I like it. Then VS Code came and drew away plugin devs and the plugin system in ST slowly started to decay. It was a few months ago when a mutter bug forced me to switch to VS Code. I rewrote my theme for VS code which was set as temporary text editor/light ide until mutter gets fixed. In that time I discover the wonderful plugin ecosystem, integrations, built in terminal etc. With heavy heart I decided to stay with VS code since it was more convenient for me.
ST4 came out, and I though, this might be it, getting back to ST. First thing I tried to install Terraform syntax highlighter. No luck. It doesn't exists. This basic plugin doesn't exist or it's not supported anymore. As a pure text editor it's awesome, but let's all be real, who needs $99 licence for a pure text editor when there are tons of free or free and opensource ones out there. I need a productivity tool.
So, this long time fan and user will stick to VS Code. I still think ST is amazing, but it just doesn't fit my needs anymore. Also, VS code is not so slow like some people are trying to picture. It's quite fast on my computer. Unless you have like 2000 plugins that needs to be loaded at runtime.
→ More replies (1)
1
u/hazardland Jun 04 '21
Slow
I have i5 8th gen, 8GB RAM and SSD but Sublime 4 happens to be as slow as VSCode, when I type code every millisecond IDE is "thinking" gives me a little heart attack : D
I had to downgrade to Sublime 3 because it is the fastest IDE I have ever used, opens in 0.5 sec after clicking icon
→ More replies (1)
1
1
u/rckmx May 21 '21
I just downloaded ST4 and opened my TSX/TS project, but sublime doesn't want to show TS error
11
u/TheBlowJoe May 21 '21
You can setup ST to lint your TypeScript projects with Package Control.
I've used the following list of packages for eslint, prettier, and TypeScript. It's not as effortless as it should be, but the two LSP packages in particular do give reference navigation that's pretty equivalent to VS Code.
If you're on macos, I also recommend creating a file at ~/Library/Application Support/Sublime Text 3/Packages/User/Default (OSX).sublime-mousemap with the following contents -- this adds a cmd+click "go to definition" shortcut that's also equivalent to what VS Code provides. (I guess the path should be "Sublime Text 4" now? but after upgrading, the config at the "Sublime Text 3" path still works for me.)
[ { "button": "button1", "count": 1, "modifiers": ["super"], "press_command": "drag_select", "command": "lsp_symbol_definition" } ]
I've tried to switch to VS Code a few times -- language features (especially TypeScript) tend to work better out-of-the-box but it still isn't close in terms of performance. If you want IDE-like features to "just work" then VS Code is definitely the best choice, but the persistent (albeit sleight) input lag drives me up the wall.
→ More replies (3)
125
u/[deleted] May 21 '21
Why is it disabled on Linux and Windows?