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

C++ for loop snippets now working well #4694

Closed
NIRVANALAN opened this issue Mar 28, 2020 · 1 comment
Closed

C++ for loop snippets now working well #4694

NIRVANALAN opened this issue Mar 28, 2020 · 1 comment
Labels

Comments

@NIRVANALAN
Copy link

Describe the bug

  • Other extensions you installed (and if the issue persists after disabling them):
  • Does this issue involve using SSH remote to run the extension on a remote machine?: no
  • A clear and concise description of what the bug is, including information about the workspace (i.e. is
    Steps to reproduce
  1. create a cpp files with main function
  2. type for and generate a for snippet
  3. press tab once to locate on the looper name(i by default)
  4. use backspace to delete the looper variable
    then it comes:
for (size_t 0; i < count; i++)
 {
/* code */
}

what it should be:

for (size_t  = 0;  < count; ++)
{
    /* code */
}

Environment (please complete the following information):

  • Extension (VsCodeVim) version: latest
  • VSCode version:
  • OS and Version: Deepin 15.11
  • VS Code Version: latest

** additional information
This snippet works well when VIM extension is disabled

@J-Fields
Copy link
Member

Ha! Good timing. This has been a known issue for a long time, but just a few hours ago a fix was merged into master (#4570). It'll be in the next release.

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

No branches or pull requests

2 participants