Ultimate VS Code setup for Rust development (2025)

  Рет қаралды 35,343

Let's Get Rusty

Let's Get Rusty

Күн бұрын

Пікірлер: 144
@letsgetrusty
@letsgetrusty 2 ай бұрын
Get your *FREE Rust training* : letsgetrusty.com/bootcamp
@dezly-macauley
@dezly-macauley 2 ай бұрын
Excellent now I can use Neovim in the VS Code terminal like a true menace to society.
@rawvoxel
@rawvoxel 2 ай бұрын
@@dezly-macauley diabolical
@Luclecool123
@Luclecool123 2 ай бұрын
2025 come one man
@shateq
@shateq 2 ай бұрын
why not?
@Takatou__Yogiri
@Takatou__Yogiri 2 ай бұрын
he is from future.
@bob_pm
@bob_pm 2 ай бұрын
always one step ahead
@georgehelyar
@georgehelyar 2 ай бұрын
This video implements the Future trait
@v-sig2389
@v-sig2389 2 ай бұрын
​@@shateqthat is one of the most cringe, sad and low iq way to attract people. He is shaming us all with "that part of the web" vibes.
@alexipeck4201
@alexipeck4201 2 ай бұрын
A tip for Dependi if you don't know the latest version for a crate, if you leave it blank (rand = ""), you can just hover over it and select the version.
@not_kelbaz
@not_kelbaz 3 күн бұрын
Or you can use cargo add :)
@aromia1832
@aromia1832 2 ай бұрын
Summary: 1. install rustup - the basic component of rust 2. install VS Code - our editor 3. install VS Code extension "rust-analyzer" - the official extension for rust 4. install VS Code extension "Dependi" - for parsing and better display of cargo.toml 5. install VS Code extension "Error Lens" - inline displaying error msg, more straightforward 6. install VS Code extension "Todo Tree" - highlighting todo comments in ur code and traverse them in the side panel 7. install VS Code extension "GitHub Copilot" - no explanation needed :)
@T1Oracle
@T1Oracle 2 ай бұрын
After I learned Helix Editor, I stopped coming back to VS Code. Zed was cool too, but not still needs more UI polish.
@ok-alarm
@ok-alarm 2 ай бұрын
Helix is just 👌👌
@rawvoxel
@rawvoxel 2 ай бұрын
Ayyye Helix gang 😎
@pierreollivier1
@pierreollivier1 2 ай бұрын
Helix is truly the GOAT, there's no editor out there with such performance/stability/features.
@maleldil1
@maleldil1 2 ай бұрын
@@pierreollivier1 without plugins, it's much more limited than neovim. If you're someone who doesn't require that, it's a really good editor. I much prefer Helix/Kakoune mode style, but I can't live without some neovim plugins.
@tommy.3377
@tommy.3377 2 ай бұрын
And I was just about to start writing code on zed :'(
@OfficialViper
@OfficialViper 2 ай бұрын
Pro tip: Go into your settings and somewhere there is a cargo command defined (I think it's check, build or fmt). Change that to clippy. Error Lens will now use clippy to also show you linter errors in-line instead of just compiler errors.
@ZoltanTemesvari_temy
@ZoltanTemesvari_temy 2 ай бұрын
Lightweight?
@lcssbr
@lcssbr 2 ай бұрын
True if compared to Full IDEs, but false when compared to other text editors like Sublime Text, Zed, Helix, Lapce, etc.
@letsgetrusty
@letsgetrusty 2 ай бұрын
Relative to other IDES (JetBrains, Visual Studio, Etc.)
@mrtitanhearted3832
@mrtitanhearted3832 2 ай бұрын
0:11 LIGHTWEIGHT caught me off guard, without extensions it maybe, but to make it feel like an IDE, you install a tone of them and your laptop starts crying, begging for mercy
@de_mon2084
@de_mon2084 2 ай бұрын
Agreed although it certainly is lightweight compared to VS (the other one)
@Cwyrm
@Cwyrm 2 ай бұрын
this is true of every "lightweight" editor though. My friend has a Neovim setup that has enough extensions that it takes like a second for syntax highlighting to catch up.
@Dominik-K
@Dominik-K 2 ай бұрын
Same, lightweight is... Not VS for me
2 ай бұрын
I have a 16 processing units with 32 gb of RAM machine. It's lightweight for me.
@hellelo.5840
@hellelo.5840 2 ай бұрын
Actually its lightweightb compared to JETBRAIN products and Microsoft VS
@RenaudDenis
@RenaudDenis Ай бұрын
Thank you for the tips! Useful when you switch IDE or start your Rust journey and look at the overwhelming extension list VScode offers. Just wondering: sometimes the C/C++ extensions are recommended instead of CodeLLDB. Is there a major difference between them (for debugging)?
@s1v7
@s1v7 2 ай бұрын
what about Rust Test Explorer?
@aarondelarosa3146
@aarondelarosa3146 2 ай бұрын
Excellent. I've got a Rust code, but I don't know how to run it.
@ok-alarm
@ok-alarm 2 ай бұрын
any helpful configs for Helix editor for rust?
@pierreollivier1
@pierreollivier1 2 ай бұрын
You can go on their repo they have a language.toml that can help you with any language
@poloaotomato
@poloaotomato 2 ай бұрын
add these to your settings.json ``` "[rust]": { "editor.defaultFormatter": "rust-lang.rust-analyzer", "editor.formatOnSave": true, "editor.formatOnType": true, "editor.insertSpaces": true, "editor.tabSize": 4, }, "rust-analyzer.check.command": "clippy", ```
@RenaudDenis
@RenaudDenis Ай бұрын
I would also add one important detail: Test Explorer is not enabled by default in the Extension Settings. Checking this activates Test Explorer integration, which is super handy,
@sdramare864
@sdramare864 2 ай бұрын
Your step-by-step instructions are really cool! Could you please create a video with the same level of detail on how to find a job as a Rust developer?
@codeitlikemiley
@codeitlikemiley 2 ай бұрын
i have built a vscode plugin called cargo-runner press [CMD or CTRL] + R to to quickly run , build, test/doctest , bench and debug your rust code if you need to override command parameters that persist on succeeding CMD + R you can do so by pressing CMD/CTRL + SHIFT +R it would either prepend or append those parameters or ENV var for rust projects that dont use cargo , as the default command e.g. leptos or dioxus you can override the default command cargo to e.g. leptos or dx by making a Makefile it would use that command instead of cargo. I used this on production rust app to help me speed up development time I have posted this twice and it got deleted LOL
@dampfwatze
@dampfwatze 2 ай бұрын
I would always recommend C Spell extension!
@dangelgeek
@dangelgeek 2 ай бұрын
very helpful, thank you!
@DmitryKoleev
@DmitryKoleev 2 ай бұрын
Thank you! Very useful extensions.
@Luxubu2020
@Luxubu2020 3 күн бұрын
Awesome. Thank you!
@sososo3906
@sososo3906 2 ай бұрын
Todo Tree looks great, i would also add unwrap to it to make me make the program safe. Btw, i would also add grammar checker extension
@nicholas_obert
@nicholas_obert 2 ай бұрын
How about a zed setup for rust development? I know zed has native rust support, but it's still not quite like vscode
@Matt23488
@Matt23488 2 ай бұрын
VS Code is fine. Most time spent writing code is actually spent thinking. The gains you get from VIM motions are negligible.
@Nitiiii11
@Nitiiii11 2 ай бұрын
@Matt23488 It's about the flow, not only about saving time.
@natrixnatrix
@natrixnatrix 2 ай бұрын
Eh, it's ok. The biggest issue is that you quickly run into a ceiling. I ditched VsCode once I noticed that I spent more time on getting extensions and language servers to work with it than with neovim. Neovim was something I had mostly just been messing around with as a hobby in my spare time up until that point. The thing is that with something like neovim you slowly learn not only the motions but also how the editor works under the hood and how to modify it. And while you also do that with vscode, neovim at least is a lot easier to work with. My use case may not be the standard though since my work often requires me to work with different programming languages in a variety of different environments. Quickly getting code highlighting, debuggers, and language servers up and running is important to me since it's something I have to do every other week. But if you are only writing typescript in the same webframework for the entire year then that is probably not as relevant.
@user-rg7ux5hn5t
@user-rg7ux5hn5t 28 күн бұрын
whats about the plusins; "Rust"copilot github "crates"
@InternetEntreprenuer
@InternetEntreprenuer 2 ай бұрын
if your writing in rust you should be using zed which is made in zed. Zed does everything perfectly
@footballCartoon91
@footballCartoon91 2 ай бұрын
Can you make a video on how to use or how to pass around a singleton in rust ? Especially if those singleton object stores the representative of the heap allocated object in the form of pointer as part of it's attribute. Let's assume I have a class called `Renderable`. It has a `Sprite' which takes image file path as argument. So, `Sprite` doesn't implement `Copy` and `Clone` trait. Then I have `Decal` which needs to take ownership from `Sprite`. For some reason, they didn't make a function that takes a `Sprite` reference. So that is basically impossible to create a `Renderable` class.
@kelechiukah8025
@kelechiukah8025 2 ай бұрын
can Renderable instead have an Option so that it can "give up" Sprite to Decal? it sounds like Renderable doesn't really need/want ownership of Sprite if Decal is the struct that ultimately consumes Sprite. you should think about the lifecycle of a single Sprite before it ends up being consumed by a Decal. perhaps Renderable doesn't need ownership and can own a &Sprite, but you should decide whether Renderable or Decal is the "ultimate" owner of Sprite
@sunofabeach9424
@sunofabeach9424 2 ай бұрын
`Renderable` sounds like a trait that could have a function called `render` for `Decal to implement...
@alexcani4957
@alexcani4957 2 ай бұрын
Goddammit my heart stopped for a moment I thought we were in 2025.
@Phosphorus-zr7kl
@Phosphorus-zr7kl 2 ай бұрын
Why isn't anyone talking about RustRover. As long as I tried it - it is so much better than VS code
@Wow4ikFD
@Wow4ikFD 2 ай бұрын
But is it free?
@MykytaNikitenko
@MykytaNikitenko 2 ай бұрын
@@Wow4ikFD yes for non comercial use
@31redorange08
@31redorange08 2 ай бұрын
Because it's from JetBrains and their products have lots of problems.
@BokoMoko65
@BokoMoko65 2 ай бұрын
Great work Can you guide us on how to use rust with VS Code dev containers?
@NuflynMagister
@NuflynMagister 2 ай бұрын
Дякую, Богдане!
@playlistprivada6552
@playlistprivada6552 2 ай бұрын
Why do Visual Studio Code plugins and features stop working on my Mac when I open my Rust project which has a Vue project embedded as a frontend?
@jamespost8967
@jamespost8967 2 ай бұрын
It's probably C++'s fault!
@sunofabeach9424
@sunofabeach9424 2 ай бұрын
if your project has a lot of dependencies (or subdependencies), then a lot of terrible stuff can happen. on windows VSCode dies with out-of-memory code, on Linux it crashes X11 along with VSCode
@shrodinger3844
@shrodinger3844 2 ай бұрын
that intro is extremely funny i love it
@shrodinger3844
@shrodinger3844 2 ай бұрын
AND so true i use zed whenever i dont feel like setting up a specific IDE, i only have a specific ide for c++ and one for java
@justy1337
@justy1337 2 ай бұрын
never found out about Todo Tree but somehow still cool suggestions damn
@buddhirajgautam5731
@buddhirajgautam5731 2 ай бұрын
what about zed ?
@maxcruer
@maxcruer 2 ай бұрын
Rustrover just feels better
@durgaprasad6671
@durgaprasad6671 2 ай бұрын
Could you post embedded related video..?
@marcelkblanckhema
@marcelkblanckhema 2 ай бұрын
Why don‘t you create a let's get rusty extension? Add the extensions, settings and explanation plus a link to this vid. Would also be great advertisement for your channel
@merodeadorNocturno
@merodeadorNocturno 2 ай бұрын
Truth is that for Rust development I am a lot more comfortable using Zed than VS Code. After 1 hour of coding Rust in Zed I just couldn't go back to VSCode for Rust development.
@dvdmgl2
@dvdmgl2 2 ай бұрын
So true!
@theLowestPointInMyLife
@theLowestPointInMyLife 2 ай бұрын
Supermaven is broken in zed
@dezly-macauley
@dezly-macauley 2 ай бұрын
@@merodeadorNocturno What makes zed so much better? 😯
@merodeadorNocturno
@merodeadorNocturno 2 ай бұрын
@@dezly-macauley first of all, you don’t need to install anything to begin Rust development; you just open Zed and is Rust ready. Second, it is so much faster than VS Code. Whenever I write JavaScript or TypeScript code in VS Code, it feels sluggish compared to Zed. The thing is that Zed is not yet mature enough for you to code in other languages besides Rust, there are a lot more extensions in VS Code for almost anything and that is something lacking in Zed. The user base and community is also bigger in VS Code. My recommendation would be: if you want to write Rust, you should check out Zed and see if it fits your workflow. For JavaScript, typescript, php, python, and so forth, you might be better suited with VS Code.
@PrimordialOracleOfManyWorlds
@PrimordialOracleOfManyWorlds 6 күн бұрын
i just checked. zed has no windows version yet. the website displayed windows coming soon.
@radutomy
@radutomy 2 ай бұрын
Helix next? :)
@cryptonative
@cryptonative 2 ай бұрын
My ultimate vscode setup: Use zed
@justafreak15able
@justafreak15able 2 ай бұрын
Is that good?
@cryptonative
@cryptonative 2 ай бұрын
@@justafreak15able surprisingly good, it’s fast like vim, let’s you choose the key bindings you are used to (vscode for me), requires no mouse and needs no setup
@bigfishoutofwater3135
@bigfishoutofwater3135 2 ай бұрын
No Lapce?
@gepron1x
@gepron1x 2 ай бұрын
It sucks, sorry
@sergioqcostas
@sergioqcostas 2 ай бұрын
why not something on zed? an ide made with rust
@tommy.3377
@tommy.3377 2 ай бұрын
For zed please
@eduardopaloujaume2008
@eduardopaloujaume2008 2 ай бұрын
Nice work !!!!
@orterves
@orterves 2 ай бұрын
0:45 first, if you're a Windows user, you just need to install WSL2 or otherwise replace your os with Linux I'd tell the Mac users what to do but it's not like they'd listen to reason
@theangelofspace155
@theangelofspace155 2 ай бұрын
Vscode and light weight in the same sentence, wow. That is a new lol
@pierreollivier1
@pierreollivier1 2 ай бұрын
1.5gb (without plugins) idle for a a program that just let's you edit text, is not my definition of "lightweight". In comparison my editor is maybe 30mb which is already a lot, and with LSP maybe 500mb which is a shit load of memory but at least it's tangible
@anatolia23
@anatolia23 2 ай бұрын
There is nothing like Neovim:) Period!
@thesr8811
@thesr8811 2 ай бұрын
Here I was thinking I will see something new xD Yeah VS Code is the Best Editor of All time Covering anything and everything as it's a general purpose IDE. And those who are asking why I have to install the Extensions, VS Code was built that way to be light weight and extensive use of extension to make it more robust and support for any language, and yes The Rust Analyzer is from The rust team. Personal Opinion: VS Code >>>> VS and VS Code >>>> Neovim and all the vi and vim crap tho Neovim is better than vim and vi but if I must use CLI Nano supremacy is the way
@rahff99
@rahff99 2 ай бұрын
What about Rustrover Jetbrain IDE ?
@Kronicaler
@Kronicaler 2 ай бұрын
cmon not even an extension for debugging?
@Wow4ikFD
@Wow4ikFD 2 ай бұрын
3:30 or are there better alternatives?
@MykytaNikitenko
@MykytaNikitenko 2 ай бұрын
@@Wow4ikFD I was recently doing some research and there is no really better debugger for now than rust's own rust-gdbgui, especially for nightly rust, because debugger in RustRover can not display vectors, options, results etc. of nightly rust, the same for CodeLLDB, so if you are seriously planning to do rust, get used to rust-gdbgui whether you like it or not, there won't be anything better in nearest times
@himanshuwiz
@himanshuwiz 2 ай бұрын
bro looks like a greek god
@hermes6910
@hermes6910 2 ай бұрын
Just use Rust Rover now x)
@ManvendraSK
@ManvendraSK 2 ай бұрын
This is what I'll choose for: Production work 1. RustRover Personal learning 1. Zed (New and doesn't support debugging) 2. RustRover (Free for personal use) 3. Code (All-in-one editor)
@sdramare864
@sdramare864 2 ай бұрын
The debugger in RustRover is still much worse than CodeLLDB with VSCode/NVim
@patrickkdev
@patrickkdev 2 ай бұрын
The best AI for vscode by far is Codeium. And it is free.
@I_em_umair
@I_em_umair 2 ай бұрын
I will watch it again in 2025
@TenTypekMatus
@TenTypekMatus 2 ай бұрын
Where’s Zed?
@sunofabeach9424
@sunofabeach9424 2 ай бұрын
it also OOM's unpredictably
@BeeBeeEight
@BeeBeeEight 2 ай бұрын
Waiting for the Rust Foundation guys to build their own shiny IDE. I mean come on, if Microsoft could build VSCode using Electron what's stopping u guys with a Rust framework like Tauru? 😉😏
@vencislavvidov
@vencislavvidov 2 ай бұрын
I use dev container
@abdullahmertozdemir9437
@abdullahmertozdemir9437 2 ай бұрын
I expect the 2026 version in a month. Failure will not be tolerated, understood?
@azharalibhutto1209
@azharalibhutto1209 2 ай бұрын
❤❤❤❤❤❤❤❤❤❤❤
@clot27
@clot27 2 ай бұрын
use helix
@cryptonative
@cryptonative 2 ай бұрын
zed
@tauzN
@tauzN 2 ай бұрын
In 2025 you should really be using brew or winget.
@mrkyn
@mrkyn 2 ай бұрын
why not 2026?
@PikminGuts92
@PikminGuts92 2 ай бұрын
I’ll wait for 2026
@gigabek
@gigabek 2 ай бұрын
We're cooked if these tutorials exist. And since when vscode became lightweight? This electron bloatware eats ram like nikocado in his fat years.
@Dreamer66617
@Dreamer66617 2 ай бұрын
Rust Rover woohoooooooo
@thedarkest8672
@thedarkest8672 2 ай бұрын
I use neovim and I don't know why I'm watching this
@iMagicGraalOnline
@iMagicGraalOnline 2 ай бұрын
Super early!
@adibhanna
@adibhanna 2 ай бұрын
Neovim
@AS-Aeros
@AS-Aeros 2 ай бұрын
Bro your are still 2 months early 🤣🤣🤣
@theblckbird
@theblckbird 2 ай бұрын
2025?
@byt3blitz
@byt3blitz 2 ай бұрын
Lightweight 😂😂
@EduardKaresli
@EduardKaresli 2 ай бұрын
Oh, so you have deteleted my comment. That speaks tons about you. 🤷
@jcbritobr
@jcbritobr 2 ай бұрын
copilot is very expensive for brazilians 😑
@skidkadda
@skidkadda 2 ай бұрын
use Zed, rustrover or nvim... not this bs
@Edgar-pu1lc
@Edgar-pu1lc 2 ай бұрын
Why ?
@Singlton
@Singlton 2 ай бұрын
Next video for zed please 🙏
@dvdmgl2
@dvdmgl2 2 ай бұрын
Summary: 1. install rustup - the basic component of rust 2. install Zed No video required
@tai9404
@tai9404 2 ай бұрын
1st step, donwload neovim
@flexairz
@flexairz 2 ай бұрын
Github CoPilot? Nope Codeium
@oleksandrhusiev6544
@oleksandrhusiev6544 2 ай бұрын
Absolutely useless setup since RustRover appeared, it is also free and better in any possible situation
@SDGful
@SDGful 2 ай бұрын
Rust rover is best these all are shit
@PaulJaros
@PaulJaros 2 ай бұрын
Lately your videos have become less pleasant. As a Ubuntu fan I'm being judged "boring" and as a long term vi user I'm following a "hype". Now text-editor wars are a well known unpleasant thing too. I like vs-code (but use the opensource alternative vs-codium) but the way of disregarding other alternatives is not good. How about telling why you like your editor and what your preferred settings are and encourage to try it without dismissing other choices.
@Iuigi_t
@Iuigi_t 2 ай бұрын
Not even using helix or zed. That's not the rust spirit one wants in the rust community.
@kamertonaudiophileplayer847
@kamertonaudiophileplayer847 2 ай бұрын
Mine is: rustc 1.83.0-nightly (a5cf8bbd4 2024-09-18)
@CaBoyGames
@CaBoyGames 2 ай бұрын
Even Better Toml not needed just add this setting 👇 "files.associations": { "*.toml": "properties" },
@mahor1221
@mahor1221 2 ай бұрын
Thank you for the video!
@maxcruer
@maxcruer 2 ай бұрын
Rustrover just feels better
5 deadly Rust anti-patterns to avoid
13:25
Let's Get Rusty
Рет қаралды 34 М.
8 deadly mistakes beginner Rust developers make
14:14
Let's Get Rusty
Рет қаралды 176 М.
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Rust stole C++'s best features
8:47
Let's Get Rusty
Рет қаралды 64 М.
Should you learn Rust in 2025?
11:11
Let's Get Rusty
Рет қаралды 24 М.
Is it worth it to call Rust from Python with PyO3?
8:50
EKB PhD
Рет қаралды 2,4 М.
(Neo)Vim Made Me a Better Software Developer
40:27
vim-jp
Рет қаралды 44 М.
The magic of Rust's type system
9:01
Let's Get Rusty
Рет қаралды 81 М.
I spent six months rewriting everything in Rust
15:11
chris biscardi
Рет қаралды 447 М.
The Ultimate Tier Programming Tier List | Prime Reacts
26:57
ThePrimeTime
Рет қаралды 507 М.
you need to build a RUST desktop app!!
27:21
Travis Media
Рет қаралды 336 М.
The genius of Rust constructors
6:08
Let's Get Rusty
Рет қаралды 46 М.
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН