Vscode-rust: Keywords, primitives (basic syntax) in IntelliSense/Completion?

Created on 13 May 2018  路  2Comments  路  Source: rust-lang/vscode-rust

Is there a way to enable IntelliSense/Word Completion for built-in keywords and primitives Rust has such as let, let mut, i32, i64, etc.? I know these are pretty basic things but as I learn and become more familiar with the language, it's helpful to have the basic language keywords in auto-completion much like the IDEA Rust plugin does.

Perhaps there is more of a syntax-related extension I am missing in the Marketplace that partners well with RLS-VSCode for this?

Most helpful comment

These would be implemented as snippets, rather than intellisense. I've avoided adding too many snippets to the extension (e.g., one for each keyword) since on an informal survey of users, the majority preferred having a small number of high value snippets rather than lots of them (which as you point out, might be best for beginners). I think it would be great if someone created an extension which was just a collection of lots of Rust snippets, but I'm not aware of one existing yet.

All 2 comments

These would be implemented as snippets, rather than intellisense. I've avoided adding too many snippets to the extension (e.g., one for each keyword) since on an informal survey of users, the majority preferred having a small number of high value snippets rather than lots of them (which as you point out, might be best for beginners). I think it would be great if someone created an extension which was just a collection of lots of Rust snippets, but I'm not aware of one existing yet.

CLosing since I don't think we'll ever add such a thing to this extension.

Was this page helpful?
0 / 5 - 0 ratings