rust


No Rust autocomplete in Visual Studio Code for external crates such as 'gtk-rs'


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:
Do not use the old extension "Rusty Code", since it's no longer maintained. Use this one instead, hosted editor-rs/vscode-rust.
The dependencies must be downloaded and compiled for Code to retrieve useful information about them. Every time you modify your dependency list, run cargo build on your project, either from a terminal or the Code command included by the extension (press F1 then type in "build" and enter). Don't forget to build after cleaning the project as well.
It's always worth making sure that the extension is up to date and properly configured. Update the extension, then see the main documentation and have it work on either legacy mode or using the Rust Language Server (RLS).
Check the status bar. If something is wrong, it should tell you so. In RLS mode, you can click it to re-check your code (very useful for resolving occasional RLS bugs). If something still isn't right, try reloading your window.
If there's still a problem after these steps, it might actually be a bug, which should be reported.

Related Links

Struct with a generic trait which is also a generic trait
Rustup vs Cargo binaries
How to redirect child process output to stderr?
Why does Rust not permit type inference for local constants?
How do I find the function pointers for tests from the LLVM IR code of a Rust program?
How to check in Rust if architecture is 32 or 64 bit?
How can I succinctly combine many `Result`s of different types?
Why is the produced assembly not equivalent between returning by reference and copy when inlined?
include module from the same directory level [duplicate]
Is there a way to prevent emitted LLVM IR from removing unused functions?
Does Cargo support custom profiles?
Pass mutable reference to an element of a vector as parameter of function alongside with that vector
How to format a String object in Rust? [duplicate]
How do I make rustc-link-search relative to the project location?
Safe non-trivial data dependencies/custom references?
Skip struct field when serializing

Categories

HOME
ontouchlistener
focus
qc
swi-prolog
dry
initialization
biztalk
hystrix
driver
game-maker
createjs
sonata
parceler
azure-machine-learning
spring-ldap
anova
activeadmin
weex
substring
ini
sybase-ase
chronicle-queue
uri
uilocalnotification
pyspark-sql
boolean-logic
matlab-app-designer
toad
objectmapper
osx-lion
image-optimization
love2d
android-n
python-sounddevice
praat
stat
netapp
jacoco-maven-plugin
klee
system-on-chip
opal-framework
robust
jqgrid-asp.net
morphline
git-tfs
reverse-dns
autorelease
webalizer
roracle
lightning-workbench
hibernate-ogm
extjs4.1
polymaps
dynamics-crm-4
business-rules
pbx
ternary-operator
streamwriter
jsonix
visual-studio-monaco
msbuild-4.0
bbc-micro
mercurial-extension
accessibilityservice
univocity
gdl
stack-smash
supersocket.net
artisan
quercus
inputbox
multivariate-testing
loginview
aho-corasick
rpg
network-printers
.htpasswd
sql-function
pre
nosql-aggregation
iosched
rikulo
dibs
office-app
sfinae
servlet-container
3des
ios-4.2
ninject-interception
firephp
webclient.uploaddata

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App