Skip to content

Autocomplete : in the end of line such as def, for #3758

Closed

Description

Discussed in microsoft/vscode-python#15606

Originally posted by solzard March 8, 2021
I always use PyCharm, Jetbrain's Python IDE, and try to make my newly-installed VSCode similar to that one.

VSCode is much lighter and faster, but one thing VSCode annoys me is it doesn't autocomplete : in the end of lines.
When writing def or for statement, PyCharm autocomplete : and moves to the indented next line using a shortcut called complete current statement.
VSCode lacks :, so I have to go back and type it manually.

As I've googled so far, it seems there's no config or extension for this.
Is such a feature supported in VSCode?

# ←: current cursor before using the shortcut
def main(←)

# PyCharm
def main():
    [move to here]

# VSCode
def main()
    [move to here & lack a colon]
```</div>

Activity

  1. brettcannon commented on Sep 1, 2021

    @brettcannon
    MemberAuthor

    Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 5 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue.

  2. brettcannon commented on Nov 1, 2021

    @brettcannon
    Author
  3. solzard commented on Nov 7, 2021

    @solzard
  4. brettcannon commented on Nov 8, 2021

    @brettcannon
    MemberAuthor

    solzard sorry about that, wrong canned response 😅. What I meant to say was:

    Thank you to everyone who upvoted this issue! Since the community showed interest in this feature request we will leave this issue open as something to consider implementing at some point in the future.

    We do encourage people to continue 👍 this issue as it helps us prioritize our work based on what the community seems to want the most.

  5. brettcannon commented on Dec 14, 2022

    @brettcannon
    MemberAuthor

    Moving to Pylance as a feature request.

  6. locked and limited conversation to collaborators on Dec 28, 2022
  7. converted this issue into a discussion #3790 on Dec 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions