Rust Toggle End Of Lines - Rust10x VSCode Extension

  Рет қаралды 4,442

Jeremy Chone

Jeremy Chone

Күн бұрын

Пікірлер: 12
@Boronesss
@Boronesss 7 ай бұрын
just one of the best rust content creator! really like your content.
@irlshrek
@irlshrek 7 ай бұрын
JC IS A LEGEND! I don't use vscode but I'll turn this into neovim mappings. Great idea!
@JeremyChone
@JeremyChone 7 ай бұрын
Thanks. Make sure to look at the latest main branch; I just removed some dead code. Also, one thing I might add in the next release is an `eol_cycle` command, which will cycle through those endings. This might be a good alternative binding to `cmd + ;` for some. By the way, if you are making a public extension for neovim for Rust, I am more than happy to add a link in the readme.
@LucasOe
@LucasOe 7 ай бұрын
Wouldn't it make more sense to have it cycle through the options? Maybe have one keybind to toggle the await and one to toggle the questionmark. Or one command that cycles through all four.
@JeremyChone
@JeremyChone 7 ай бұрын
Funny, this was my next feature I was going to add the ‘eol_cycle’ for the ones that prefer to bind this one.
@JeremyChone
@JeremyChone 7 ай бұрын
Btw, I like your idea of some ‘eol_toggle_question’ and similar for await. I might add those as well.
@zaafhachemrachid1701
@zaafhachemrachid1701 7 ай бұрын
thx for all hard work
@michaelheinrich5219
@michaelheinrich5219 7 ай бұрын
Nice extension, greatly appreciated!
@codeitlikemiley
@codeitlikemiley 7 ай бұрын
i believe it is possible to make it just use one single key press e.g. cmd + ; then properly parse the method signature , so if it is a async with result then it would have .await?;
@JeremyChone
@JeremyChone 7 ай бұрын
Yes, that would be cool, but in practice, it might be tricky, especially to find the function. 1) We could do it the "cheap way," like a text/regex way, but this will become computationally heavy as the code grows. 2) We could piggyback on rust-analyzer if they have an API for that, but this could also be quite complex. And at the end, we still have to toggle the ? on/off, as sometimes users might want the Result for some matching.
@endogeneticgenetics
@endogeneticgenetics 6 ай бұрын
Oh my gosh, that’s so nice!
@JeremyChone
@JeremyChone 6 ай бұрын
I just added a eol_comma as well.
Rust AI Function Calling - Full Tutorial (with async-openai)
1:55:26
Rust Error Handling - Best Practices
21:33
Jeremy Chone
Рет қаралды 24 М.
Try Not To Laugh 😅 the Best of BoxtoxTv 👌
00:18
boxtoxtv
Рет қаралды 7 МЛН
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 2,1 МЛН
Walking on LEGO Be Like... #shorts #mingweirocks
00:41
mingweirocks
Рет қаралды 6 МЛН
СОБАКА ВЕРНУЛА ТАБАЛАПКИ😱#shorts
00:25
INNA SERG
Рет қаралды 3,5 МЛН
Don't use VSCode
35:31
PyCon South Africa
Рет қаралды 229 М.
UUID v7 vs. v4 + Rust Programming Examples
19:41
Jeremy Chone
Рет қаралды 16 М.
How I refactor notes in Obsidian
22:00
Nicole van der Hoeven
Рет қаралды 18 М.
Deploy your Rust project in 20 minutes
20:29
Let's Get Rusty
Рет қаралды 50 М.
Why I Switched From NEOVIM To VSCODE
13:45
Anthony GG
Рет қаралды 25 М.
Rust Ollama By Examples - 4 Chapters (Full Tutorial - Rust AI)
1:00:42
Rust genai - Multi-AI Providers Client
12:34
Jeremy Chone
Рет қаралды 8 М.
Write Rustier Rust
12:13
chris biscardi
Рет қаралды 39 М.
5 Steps to Learn Rust Programming
25:06
Jeremy Chone
Рет қаралды 8 М.
Build Blazing Fast Backends with Rust & Actix Web
18:28
Flo Woelki
Рет қаралды 15 М.
Try Not To Laugh 😅 the Best of BoxtoxTv 👌
00:18
boxtoxtv
Рет қаралды 7 МЛН