Maybe this question has been done before but I can not find anything.
I would like to know what steps to follow so that Visual Studio Code can show the autocomplete window that shows Rust methods and such, for example when using ctrl+space (In many commons, editors) What I see is that it works for std
but not for gtk-rs
.
I was wondering if I would have to tell you in some way how to find the files or something like that.
I do not know if this will depend on each editor or all have some specific files included, my IDE is Visual Studio Code.
...you forgot to include the extensions that you have installed
kalitaalexey Rust for Visual Studio Code
Rust Language Server integration.
Autocompletion (via racer or RLS).
Go To Definition (via racer or RLS).
Go To Symbol (via rustsym or RLS).
Code formatting (via rustfmt).
Code Snippets.
//..
Although there could be many possible causes of a problem with the Rust extension in Visual Studio Code, the following steps should help anyone with issues of this kind:
extern crate
, then run cargo build
on your project. If the Code command is available, press F1 then type in "build" and enter. Don't forget to build after cleaning the project as well.If there's still a problem after these steps, it might actually be a bug, which should be reported.
For me solution was to use Rust Analyzer extension https://marketplace.visualstudio.com/items?itemName=matklad.rust-analyzer instead of rust-lang.rust https://marketplace.visualstudio.com/items?itemName=rust-lang.rust
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With