Skip to content

Suggests "where" autocompletion at the end of a sentence #4979

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
RalfJung opened this issue Jun 22, 2020 · 3 comments
Closed

Suggests "where" autocompletion at the end of a sentence #4979

RalfJung opened this issue Jun 22, 2020 · 3 comments

Comments

@RalfJung
Copy link
Member

I am writing comments, and after typing a text like

/// Returns whether the two types are equal up to lifetimes.

when I typed the final ., a menu suggesting "where" as autocompletion appears, so when I hit enter to start a new line, it instead inserts the text "where" at the end of the previous line. That is quite annoying, I have to hit escape-enter each time I want to start a new line.

Is there a way to make RA not auto-complete when writing comments?

@RalfJung
Copy link
Member Author

That was in the rustc codebase. In https://github.com/Gilnaa/memoffset/, it suggests a whole bunch of things, the first being "const", so that is what is inserts on .<enter>.

@lnicola
Copy link
Member

lnicola commented Jun 22, 2020

Duplicate of #4907?

@RalfJung
Copy link
Member Author

Indeed, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants