Which plugin do you use for custom layout and autocompletion ? #2234
Replies: 2 comments 1 reply
-
Maybe obvious, but your rust files need the .rs file extension. So that VSCode knows that it is a Rust source code file. I'm using VSCodium (on Linux) and can sort of reproduce your issue if I incorrectly "Select Language Mode" to something other than "Rust". Make sure in VSCode that when you are editing .rs files that it shows on the bottom right corner edge of the window that the language is "Rust". If I click on the "Rust" text on the bottom right corner of the VSCode window and pick something like "Batch", the Run|Debug disappears and if I select the "Rust" language it reappears. Hope this gives you a clue. |
Beta Was this translation helpful? Give feedback.
-
Hi Mickael, Ah yes, I've reproduced your issue on VSCodium too. I suspect you just created a main.rs (with hello world example code) file inside a directory, that file alone with nothing else. I see the problem too if I do that. Maybe you found a tiny issue with rust-analyzer extension, or maybe it is expected, no idea!! Ideally, you should use "cargo new my_great_project_name" and it will create everything you need and save you some work too. |
Beta Was this translation helpful? Give feedback.
-
Hi there,
My question may sound a bit dumb as it's not really related to the exercises, but I noticed I have autocompletion and Run/Debug options in your exercices, which I don't have in my own projects.
I'm working on VScode with rust-analyzer. Any hints? That would be awesome to have those options in my own projects.
Thanks a lot for you work, you + Exercism make a very solid exercice base to learn Rust in completion of the almighty book.
Cheers!
Mickaël
Beta Was this translation helpful? Give feedback.
All reactions