I use vscode for my personal projects (c++ and a fully open source stack, compiling for both Linux and Windows).
I’m using the proprietary version of vscode (via the aur) for the plugin repository, but I’ve always envied the open source version…
Are there any tools that have made you excited?
Bonus points if they have some support for compiling with MSVC (or if you can convince me to ditch it for something else).
Gnome Builder.
I am using it, too. I whish the vim-mode was a bit more complete.
ed
Xcode because I build iOS apps.
The Unix shell remains an excellent IDE.
A huge array of text- and data-manipulation tools, with more available through the standard package manager in my operating system.
Add in a powerful text editor like Vim or Emacs, and nothing can beat this IDE.
Yep. When everything about your IDE (unix) is programmable, it makes “modern” IDEs seem quite quaint.
Personally I make extensive use of https://f1bonacc1.github.io/process-compose/launcher/ to orchestrate a bunch of different shell scripts that trigger based on file changes (recompiling, restarting servers, re-running tests, etc.). Vim just reads from files as needed. It’s lightning fast, no bloat, and a world-class editing experience.
I use helix editor in the terminal (Technically not an IDE but neither is VSCode). Works great for a keyboard and terminal-centric workflow. I had to configure it a bit to get it where I want but after that I had a blast to write Rust projects in.
It does get a lot of getting used to if you’re not used to vim-like keybinds, and does take memorizing shortcuts
Helix is awesome. I’ve spent many hours these passed months configuring both Sway and Helix to my liking, and it has become joyous to use them together. I prefer Helix’s default configs to vim’s. Still got to use Vim motions a lot though, in Obsidian etc. Similar in many aspects, but there are many small things Helix does which I find more logical. u for undo and U for redo. Small things.
I like vscodium. Basically the same as vscode but without MS stuff. (but that also means a few extensions are gone, like the c/c++ extension and intellicode)
Vim when I can, and when I can’t, Neovim with plugins (LazyVim). Both are fast. I have had troubles with Neovim and configuration, and it does some things that really annoy me (like autoclosing parentheses - it just messes up everything). Honestly, the only feature that I really need is Go To Definition.
But vim - I absolutely love it. I started using it nearly 20 years ago and it still does everything one could want if you’re willing to learn the keymaps and commands. Macros,
ci)
, block indentation and so on. It’s even great for editing XML. If the codebases I’m working on these days weren’t so large and complicated, I would still be using it with very little configuration in my.vimrc
.That is not a vanilla NeoVim feature. This is done by some plugin of LazyVim like Josh suggested.
I don’t use lazyvim, but I found the “auto pairs” plugin you can try to disable
I just disabled this today and life is so much better. Thanks! Everything works so much better now.
Microsoft just released Edit a couple of days ago. At least it’s not bloated, and it’s cross-platform.
Edit
That is bloat!
Just look at the number of files required to build it. Just for a text editor!
A single Makefile and a source file should be enough!
Just use ed man!
The final release is a 700KB zip file containing a single .exe.
Sure, that’s bigger than the original “edit.com”, but it’s not the 90MB install you’d expect from MS.
They told you to use “ed”
You missed the joke
Yeah!
Why do you need to capitalise the ‘e’ and add an ‘i’ and a ‘t’, when you already have something much less bloated like ed
ed, man! !man ed
Rider for Unreal Engine at work. Neovim at work/home for literally everything else (web, golang, python, zig). I have vscodium as well, a glorified config file editor basically.
I’ve gone through Visual Studio, JetBrains IDEs, Vim, Atom, Sublime, VSCode, probably others too, but frankly VSCode’s simplicity out of the box coupled with great plugin support is hard to beat. Folks who complain about VSCode not having some feature like to ignore that being relatively simple by default is a good thing. You can always add or enable what extensions you need to tailor it to your language and workflow of choice. Even if you’re used to Vim keyboard centric editing…guess what? There’s a well supported OSS extension to give you that functionality.
The power of being able to use one IDE on a diverse team across various languages is huge. You can even commit extension and settings defaults to a repo to immediately get new cloners up to speed with whatever workflow and tooling defaults are good starting points on a per project basis, but still leaving them the option to ignore/override as needed without dictating a team-wide workflow change.
Tmux, neovim + NvChad
Tmux + neovim is really great once you get past the learning curve!
Any advice? I’m trying to get a handle on it but I’m having trouble remembering anything or finding what to do in the first place.
After being a vanilla vi then vim user for a long time before switching to neovim, I find folke’s which-key plugin to be very helpful. If i begin a key shortcut combination (or press my leader key), it shows me all the keys I can press next, and again after each additional step of a multi key sequence, and what each key sequence does. it works for mappings Ive added (usually basically the defaults for a new plugin) but also the standard built-in preset keymappings (see the ‘built-in’ plugins for which-key) for things like window mamagement and motions, using/viewing the registers (what did I just yank?), even spelling corrections, which helps you learn and build muscle memory. Often I dont use a specific mapping for a while and this helps me find it, especially when I group mappings by plugin, and/or prefix all mappings for a particular plugin or task with an additional prefix letter, so they all appear as options when I get as far as rembering “all my debugging mappings start with my leader key, followed by d.” By grouping tasks and plugins that way, I can press my leader key and see a list of where to go next, almost like browsing a menu hirearchy. “i dont remember which button to press after leader and d to toggle a breakpoint, but I know that’s where I’ll find it”
@[email protected] 9 hours
This advice will seem rather generic but this has worked for me. Background: I’ve been programming for a good 15 years in various languages and mainly in VSC and veeery long ago in the arduino IDE (I do not want to talk about those dark times).
-
Get a pet project to try this against. Learning controls for the sake of it, is … useless. If its just text, there is no intuition or goal. I chose to try and teach myself rust and go through the learnopengl tutorial again and change it to work with miniquad-rs. Maybe pick something you are familiar with! A new language is a rather tall order usually.
-
Get a functional config and edit it. Personally kickstart.nvim is really nice for generic settings, but their setup of plugins, and especially LSP (language server config) is really hard to read and difficult to parse. My recommendation for setup:
2a. Copy thePrimeagen’s config ( https://github.com/ThePrimeagen/init.lua/tree/master ) which he creates with this tutorial: https://www.youtube.com/watch?v=w7i4amO_zaE NOTE: The actual config is using lazy now instead of the plugin manager he has in the tutorial! the broad strokes are the same but e.g. there is no “after” for the plugins and some other details. What he says about general vim config is still correct tho. Also lazy is much simpler, no longer do you need like 20 different packages for each LSP. (edit: found what makes it work on my setup it https://github.com/nvim-lua/kickstart.nvim/blob/6ba2408cdf5eb7a0e4b62c7d6fab63b64dd720f6/init.lua#L487 its mason-tool-installer in kickstart)
2b. Make a subfolder like
lua/theprimeagen
e.g.lua/$USER
.2c. Comment out this line https://github.com/ThePrimeagen/init.lua/blob/158c9ccd652e5921cc6940205da6ed20776e7cc7/init.lua#L1 and instead require yours.
2d. open
.config/nvim
in VSCode (yes, it would recommend using something you know to edit)2e. line by line, file by file, go through the config files and his video and add what you think is interesting. This took me a good 5h (a good days work) to get somewhat done.
2f. Also look at kickstart.nvim! Theprimeagen is a pro at this stuff so he has no descriptions for his keybindings! (Which you can add when you use e.g.
vim.keymap.set("n", "<leader>pv", vim.cmd.Ex, { desc = "[p]roject [v]iew"})
. ( The [] are just for niceness, no syntactic value). Why does this matter? -> Because kickstart.nvim has a config for the mind-blowingly usefulwhich-key
plugin ( https://github.com/nvim-lua/kickstart.nvim/blob/6ba2408cdf5eb7a0e4b62c7d6fab63b64dd720f6/init.lua#L302 ). Which shows hotkeys and their description while you play with em! Really good for learning!-
When making your config absolutely ignore anything that is not in the “top 10 things you do in any other editor”. E.g. I really only need “go to definition”, “go to file” (which is a telescope fuzzy find), “find references” or “rename”. ThePrimeagen has really words of wisdom here “If its something you do rarely, fuck automating it, only automate it when its actually worth remembering the hotkey”.
-
In general you want to reduce friction between thinking, clicking and on-screen action. So anything like “oh what if I want to have a hotkey to rename a C++ header file AND its source file in one go” is a good deal too complex. Keep it super simple.
-
learn how window jumping with stuff like
:vsplit
works in nvim, it works great! -
For Tmux, you only really need whatever this legend says: https://www.youtube.com/watch?v=vtB1J_zCv8I Sidenote: I made my first project a simple Tmux script that is exactly what fireship describes and launches pre-defined sessions. Works great!
-
learn by doing :D
Struggles:
- Moving with
hjkl
is painful at first, but believe me it is goddamn worth it. I deactivated the arrow keys and mouse clicking altogether so I don’t accidentally do it. Also you will be usingwb
andtf
mainly anyways! (word, back, to, find). - Learning the nvim internal file browser (
netrw
) is worth it! - Lua is nice but I have never used it before doing this a few days ago. After each plugin restart vim and check for any errors. If you copy something outdated or otherwise problematic you want to fail fast instead of end up with a tangled mess of configs that you need to throw out entirely.
- Editing nvim configs while in nvim is dumb and really annoying. Just do it in VSC or something you are familiar with.
Random misc:
-
Insane plugins: UndoTree (which ThePrimeagen uses)
-
Insane keycombos: e.g. you are somewhere inside of “Some Really long string that you might wanna change or copy”. normal mode.
vi"
. ->v
-> visual,i
-> inside of,"
-> whatever you wanna be inside of. It will select the entire string inside the"
. Yes i know this is basic but this shit is SO useful. Works with ANY delimiter (afaik) like([{
-
DuckDuckGo actually is navigate-able with
hjkl
! Pressingj
to go down the results list is really useful. I am using hyprland so ctrl+tab focuses a browser window. Ctrl+t new window. Type in search. Enter. Go up and down down withjk
. really nice, no mouse needed.
Links: The entire primeagen playlist: https://www.youtube.com/playlist?list=PLm323Lc7iSW_wuxqmKx_xxNtJC_hJbQ7R
kickstart.nvim: https://github.com/nvim-lua/kickstart.nvim/tree/master
Note: I would share my config but my dotfiles are on my own git server and have sensitive info inside I don’t feel like cleaning out
Thank you! This is a wonderful post, I will take another shot this weekend and hopefully something will stick this time :)
-
I’m paying for the All Products Pack by Jetbrains, use them pretty much exclusively.
I just started a Python course. My tutor uses Thonny and I have tried Pycharm previously and prefer it. Maybe because I am lazy or because I prefer all the autofill I can get. And I need all the highlighting. I am code blind.
Static typed languages usually have better auto fill suggestions than dynamic ones. It’s harder to make good auto fill with dynamic languages so.
That’s not being lazy, that’s pretty much using the tool that was made exactly for this purpose.
@rklm Rider or any #JetBrains IDE honestly. They’re just too good compared to the alternatives I’ve tried and cheaper too.
I had some coworkers a long time ago who swore by jetbrains, but I’ve never tried it. Maybe I should give it a shot!
You should! I liked it when I used it.
Using a new IDE is always a painful undertaking TBF.
I switch from visual studio to rider in order to better support my co-workers on macs. And I have never looked back, it’s just too damn good.
Though, the settings for exceptions and when to break are never right for me. While VS has it right, right out of the box.
Spacemacs
Jetbrains Rider for C# and VSCodium for arduino / microcontroller programming.
I’m trying to learn my way around the tmux + neovim life but the learning curve might be too much for me.