rust-lang / rust-enhanced

The official Sublime Text 4 package for the Rust Programming Language
MIT License
780 stars 104 forks source link

Completion seems to not trigger on `Ctrl`+`Space` #460

Closed DrOptix closed 3 years ago

DrOptix commented 3 years ago

Context

I'm trying to switch from VSCode to Sublime, but I have some issues with the completion/intellisense popup. For me this aspect kind of keeps me to VSCode camp.

Sublime Text Version

3.2.2 Build 3211 image

Rust Enhanced Version

2.23.0 image

Operating system

Fedora 33 64bit image

Expected behavior

Completion popup to be displayed when I press Ctrl+Space

Actual behavior

The popup is displayed only when I start typing.

Steps to reproduce

rust_enhanced_completion

References

I don't know

ehuss commented 3 years ago

I think the default key binding for auto-completion on Linux is "alt+/".

Also, keep in mind that Sublime's auto-completion is not by default language-aware. The assert completions that you see are called snippets, and there are only a small number defined in this package. If you want more language aware completion, you'll need something like LSP with rust-analyzer.

DrOptix commented 3 years ago

I have LSP and rust-analyzer installed/

Thank you a million, why the flowers did they put Alt + / as a key binding I'll never understand. I thought that Ctrl + Space was so standard that no one would think of other finger gymnastics to replace it. Not intuitive at all.

I will close this issue and I will modify the key binding.