Skip to content
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

Auto-Complete not working in snippets #144496

Closed
Nobody-loses-like-trump opened this issue Mar 6, 2022 · 2 comments
Closed

Auto-Complete not working in snippets #144496

Nobody-loses-like-trump opened this issue Mar 6, 2022 · 2 comments
Assignees

Comments

@Nobody-loses-like-trump
Copy link

Nobody-loses-like-trump commented Mar 6, 2022

Issue Type: Feature Request

if you make a snippet then Auto-Completion does not work in a snippet, and it is very annoying

and also an Auto-Completion for the snippets should be added EXAMPLE: if the snippet is named "print" then I do not need to write the whole "print" I can just write "pr" and a suggestion for "print" should pop up


If you can fix this issue You can also enable the old snippets https://github.com/microsoft/vscode-python/blob/2020.12.424452561/snippets/python.json


and 1 more Feature Request is to make the (Ctrl + F) in VS code more like that of Atom
in VS code the search box is very small, and I like Atom's search box more

VS Code version: Code 1.65.0 (b5205cc, 2022-03-02T11:12:08.962Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No

@gjsjohnmurray
Copy link
Contributor

Try setting "editor.suggest.snippetsPreventQuickSuggestions": false

@jrieken
Copy link
Member

jrieken commented Mar 7, 2022

When a snippet is active, IntelliSense as you type (aka quick suggestions) is disabled. That is because there is a conflict between the Tab-key which moves to the next placeholder but also accepts a completion. You wouldn't be able to type in a placeholder and then move to the next placeholder as you would accept a suggestion then. You have the following options

  • change the default via the editor.suggest.snippetsPreventQuickSuggestions-setting
  • in snippets trigger suggestions manually (via Ctrl+Space, Alt+ESC (macOS), or ctrl/cmd+i)

@jrieken jrieken closed this as completed Mar 7, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Apr 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants