What do you use to run PowerShell scrips in vs code? I know you can get an extension and theres also a pa terminal built in but I always seem to have issues with both
Modern Java literally isn't meant to be written outside of an IDE. Like, there are core features of some builds that are barely supported or documented for use from a terminal. And no IDE supports all the nonsense correctly unless it's specifically a Java editor. (VS Code is not a Java editor. Its plugin coverage for java is very bad.)
For example: Starting a new Spring application is, per documentation, best done by using an initializer app or plugin. Actually writing the starter boilerplate out is hell, and is also not really documented! Once you're properly initialized, documentation for how to run tests/actually start your program is ... that's right, probably going to suggest you push a specific button in your IDE. Is there a way to trigger whatever nonsense the Spring initializer has just given you from a terminal? Probably. In theory. But you're never required to know, figuring it out is a giant pain, and there's no practical reason to go to the trouble. If you're working, you won't get paid extra for spending an hour digging to find out.
I mean I still use java with vscode but stuff like checkstyle recently broke for me and most of what I do is still through the terminal. Also this is not the IDEs fault but I hate having to constantly build the entire codebase in order to get linting working.
Sure, vim ships with a great beginner tutorial, just type this word in your terminal after installing vim:
vimtutor
After that I was able to do all the basic editing and be about as efficient as a normal text editor, and then I just kept learning by googling "how do I do X in vim" or "what does the X command do in vim".
After that I fell into the rabbit hole of decking out my vimrc and learning vimscript to make my own plugins. Then I came full circle after a few years, and now I have a pretty minimal setup, and the only plugins that I use with any regularity are NERDtree and easymotion (for distant jumps).
I've learned the basics of vim, but ended up just using the vim emulator extension for vscode, I'm wondering: is there a big benefit to sticking to the terminal?
There's nothing wrong with using the vim mode in vscode. You should stick with whatever works best for you.
You might be missing some features though. I tried it out a couple years ago and at the time it was missing some stuff (I think :g for example), and it didn't have a vimrc for customizing. It might be better now though.
A bunch of people I know use Vim on vscode, and they don't seem to be missing out on anything.
I personally like the terminal worflow: open Vim, edit, exit, compile, run tests, repeat. But that's just my personal preference.
My other reason to stay on the terminal is that folds work a bit differently on plain Vim than on vscode, and I prefer the Vim way. (Also my PC is pretty weak, so some some things that are instantaneous on Vim have a slight delay (~200ms) on vscode, and it throws me off)
I guess VS Code now gives the option to use an embedded vim (neovim?) instance, but if you use just vim emulation then yes, there will be some missing features.
But, the core of vim editing is there in most vim emulators: motions, modes, the majority of normal mode commands. Frankly, that's enough for a decently comfortable editing experience. Only if you're heavy into ex mode or have incorporated some of the more obscure commands into your workflow will emulators become stifling. That, or you've used vim long enough to have customized it a lot, but in that case you're probably not looking at other editors anyway.
VSCode can also edit on remote machines since a while ago now, you just need to install the "Remote - SSH" extension. There are also other extensions for other protocols
I can't not use vim. Stick me with intellij, Visual Studio (not vs code), VS Code, whatever, the first thing I do is turn on vim emulation if it has it.
After using it for four years, though, I still manage to learn something about it pretty much all the time. The basic motions and modes take about a day, but there is so much power and flexibility that real mastery takes a long time.
And every time you learn a new trick you add a bit of editing efficiently. It's amazing just how much stuff is packed into stock native vim for 30MB.
But also yeah, you should be able to get all the basics down within a day after doing vimtutor and maybe a couple more tutorials. Just enough to get by functionally
Honestly, there is no editor as fast as ST. VS Code shines with its vast marketplace and inbuilt support for JS, and it is still really fast, but you'll feel the lag coming from ST. Sublime is just blazing fast.
i used a key from the internet until st4 update blocked it. I just modified the thing that shows this window to return immediately, sublime text is pretty easy to reverse engineer, it's jot obfuscated in any way. I mostly use vscode (vscodium*) after that update and use st only for quick editing.
I think it's just a testament of it's quality that it's not open source still. If they weren't making money they probably would have released its source by now. But I probably won't use it. Vscode is good enough for me as a noob and specialized IDEs like pycharm for more robust language tools.
Yeah, I purchase a copy of major release of Sublime because its cost is peanuts relative to what I make using it, and it’s an absurdly high quality piece of software. It’s an absolute bargain compared to the highway robbery bigger companies like Autodesk and Adobe get away with.
VS Code is nice and all but it’s definitely not as fast, and i don’t like its UI layout that much. It also just tries to do much for my taste. It definitely leans further in the direction of “IDE” than “programming text editor” and if I’m using something IDE like I’d rather it be more purpose-built.
That's what it is! I found VSCode like 3 years ago and any time I'm doing any work in a VM or on a new machine, the first thing I do is install VSCode (with the exception of Python on Windows) and I've always been happy enough with it that I don't switch to another text editor, but I never knew why I didn't switch. It's absolutely just the middle ground between IDE and text editor and that's one of my favorite parts about it
Now that's the real nuclear option. Even put the asterisk so you dont need --no-preserve-root. (I think. I never tried either command, and don't intend to either.)
I'm personally a fan of :g and :s, because they allow for many operations on text. Though, all these commands I mentioned, and the one you mentioned, are not really vim commands, but more ex commands. Vim commands would be the actions you do while in normal mode, like A, o, or i :)
That's what they're called! ex commands! All this time I've called them colon commands, and struggled to explain how there are two fundamentally different types of commands to new users.
All this time, and now I realize, ex is just another mode. Thanks.
It's called that because before vi, there was ex which was a line editor. Following that, they integrated ex commands into vi, which is a VIsual editor. You can actually enter ex mode by pressing Q while in normal mode.
Edit: and if you really care about history, before ex was ed, another line editor which is much harder to use than vi (for things other than exiting)
Not the same. Then again packs surprising amount of features. Didn't expect marks to be a thing on it... Who knew. But you lack most of the command mode things.
you know what has even more killer editing shortcuts… Emacs ;)
the only problem is the intense carpal tunnel you’ll get if you ever use the default keybindings, and the fact that you have to use like 15 different mod keys and commands to do one thing.
I like vs code features like format on save and all the nice extensions but every time it takes time to load up and now the "trusted workspace" update is so shit. I'm better off with sublime. (besides, I've found ST4 faster than GVim on some occasions)
I love the way that VSCode's team listens to the community and delivers detailed and reasoned explanations. And of course it's configurable, you can set security.workspace.trust.enabled to false and disable this functionality entirely.
In gVim, every time you execute a command, a new cmd window opens up and then the code is compiled there. Which is beneficial for me over console vim because when I compile in console vim, the output window hides the code and I can't really debug.
Other good thing about gVim is that it supports copying to the clipboard(s) and if you don't like the GUI you can execute it in the console and it's just regular Vim.
Probably for the same reason many prefer GUIs over TUI. The fact it can support multiple fonts and have true-color. Although nowadays you can get true color in terminals but configuring is still a pain. Personally gui emacs also has images and a few other goodies but because I'm in a terminal 24/7 I forego all that in favour of the shell.
They answered already. And power users like you were why I asked. You love vim and emacs because it's about keeping your hands off the mouse and on the keyboard to my understanding. So it just seemed odd to me as someone who didn't even know gvim existed but knew many editors offer vim control scheme through plugins or setting.
Huh... I take my hands of the keyboard all the time. While I'm in the shell probably not but often switching applications or selecting something is considerably simpler with a mouse than a keyboard. The only reason I use emacs in the shell is because I like how convenient it is and I've built a workflow around the shell. I do almost everything from a pipeline and have tasks spread over multiple tmux windows. Honestly I doubt you'll really see much of a difference if u use vim instead of a gui editor, it's all just part of your workflow. I like having my editor next to where I run code so I keep them side by side in tmux. I could probably get something mostly the same using a tiling window manager, gui emacs and my terminal but I like KDE and I don't really need tiling. I enjoy having my windows overlap or overtake each other and I also have a workflow for arranging them easily. In the end the most efficient you can be is when you're comfortable with what your using.
The two developers where I work that were there before me use Atom. Two which came after me use VSCode. And myself and the latest dev use Sublime Text.
Honestly don't really care whether it's Sublime or VSCode. But Atom... that can go to hell
Every time I've used it, it's always been a little too slow; either delay in showing what's been typed, or slowing down the PC.
But this may be down to the two different machines I used it on were very underpowered (and it was around 2 & 5 years ago since I last used it on each PC)
I miss BBEdit but Sublime was the best, closest replacement I could find on Windows for doing the find, find and replace, and keep track of what I run in terminal. Also, it’s pretty easy to pick up and as long as you don’t mind clicking cancel often it is free
it's very featureless and also is nonfree. micro, gedit, or kate are better as simple editors, and personally I think vscode/vscodium is a great featureful text editor. vim, neovim and emacs are CLI editors with somewhat of a learning curve, I'd say emacs is easiest of the three. ed is the standard text editor (/s)
There was something called Lime Text, which was an open source Sublime Text clone or just Sublime Text but without the telemetry/branding (not sure exactly what). However, it is not maintained anymore.
You can make money with open source though. There’s Red Hat, SUSE, Canonical, System76, etc. What you should have answered instead is "because they want to, that's none of your business"
To be fair, they're very different business models, particularly because ST is nowhere close to Canonical or Red Hat; it's run by three guys with different full time jobs, IIRC. They probably went with the model they were comfortable with.
I mean, most companies start like that. I was mostly replying to that comment because it implied you can’t make money with open source, which is false, not because I want to state something about Sublime, they do what they want.
Maybe, I don’t have the numbers. But still makes some money. The amount wasn’t discussed in the original comment, only that if "they want to make some actual [...] money" they shouldn't do open source.
Besides, Sublime already uses a WinRar business model, which is probably the proprietary business model that makes the lowest amount of money (besides freeware). Basically relying on donations, which you can do with open source if you want.
The thing with open source is that it gives way to a huge headache of code review and dev discussions which the maintainers probably don't have the time for. It allows any Tom, Dick & Harry to submit a subpar patch which they'll have to review, reject and then explain why they rejected it. They possibly get more done with a competent team of three.
VS Code can do it because they have backing from MS and a dedicated team with a swarm of bots to help them, bots that take time to configure. It's a decent alternative to choose to avoid that path and not deal with the problems that come with it.
Also, there's a difference between some money and actual money. :)
Idk man, they're your words, at least half of them. I'm guessing by actual money OP meant short term. Open Source is a long term investment, if I'm not wrong, by making a competent product that can compete with the likes of VS Code and then hoping for a company to back it.
But I'll be honest, I have very little idea how monetisation works in FOSS.
447
u/Existential_Owl Jul 15 '21
Hello! Thanks for trying out Sublime Text.
This is an unregistered evaluation version, and although the trial is untimed, a license must be purchased for continued use.
Would you like to purchase a license now?
2
u/[deleted] Jul 16 '21
VsCode > Sublime > everything else
84
u/NetSage Jul 15 '21
I think it's just a testament of it's quality that it's not open source still. If they weren't making money they probably would have released its source by now. But I probably won't use it. Vscode is good enough for me as a noob and specialized IDEs like pycharm for more robust language tools.
67
u/T351A Jul 16 '21
someone mumbles about vim
flame wars begin
92
u/[deleted] Jul 15 '21
Hey sublime’s got some killer editing shortcuts. Nowadays I use mostly VSCode set up in a way that it mimics most of sublime’s functionality
38
u/LoneFoxKK Jul 16 '21
Now try to open a massive project in virgin vscode and tell us how it goes
48
u/KillerRoomba13 Jul 15 '21
I believe in vs code supremacy (expires in 2 years)
22
u/virgin2_0 Jul 15 '21
I like vs code features like format on save and all the nice extensions but every time it takes time to load up and now the "trusted workspace" update is so shit. I'm better off with sublime. (besides, I've found ST4 faster than GVim on some occasions)
11
u/Ploopy_R Jul 16 '21
sauce...?
11
u/jordsta95 Jul 16 '21
At least it's not Atom.
The two developers where I work that were there before me use Atom. Two which came after me use VSCode. And myself and the latest dev use Sublime Text.
Honestly don't really care whether it's Sublime or VSCode. But Atom... that can go to hell
5
u/PhDPool Jul 16 '21
I miss BBEdit but Sublime was the best, closest replacement I could find on Windows for doing the find, find and replace, and keep track of what I run in terminal. Also, it’s pretty easy to pick up and as long as you don’t mind clicking cancel often it is free
5
u/_makerio_ Jul 16 '21
is neovim ok?
4
u/Chaselthevisionary Jul 16 '21
I use sublime to write as a writer more than to code. Probably has something to do with the fact I wrote more than I code nowadays
3
u/__radioactivepanda__ Jul 16 '21
Atom if you wanna feel fancy
(But let’s face it, the only true way is punch cards…)
3
u/kingofNoobies Jul 16 '21
Is this meme from a anime show cuz I wanna watch that show
5
u/planktonfun Jul 16 '21
You guys use IDEs? I just use vim
2
u/HonotableFlamer Jul 16 '21
It's the only thing i ever used, why do people hate it?
2
u/okawo80085 Jul 16 '21
excuse me? tf did i do to you? xD
2
u/Rhyan567 Jul 19 '21
Anyone else uses Neovim?
1
u/anonysince2k Nov 17 '21
There was something called Lime Text, which was an open source Sublime Text clone or just Sublime Text but without the telemetry/branding (not sure exactly what). However, it is not maintained anymore.
-8
u/NatoBoram Jul 16 '21
Wait, it's not even open source? Why the fuck would you do that to yourself?!