You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Bug: VS Code Snippets] When inserting a snippet, Pressing TAB inserts a Tab Space instead of moving the Focus to next Edit Position in snippet
#141004
Closed
ashuvssut opened this issue
Jan 19, 2022
· 2 comments
Does this issue occur when all extensions are disabled?: Yes
VS Code Version: 1.63.2
OS Version: Windows 10 21H2
ISSUE
Suppose I inserted a snippet
Now my focus is on Position 1.
When I press Tab, instead of Moving my focus to Position 2, the editor inserts a Tab Space in Position 1 Whats Expected? Instead of inserting a Tab Space in Position 1, move the focus of the cursor to Position 2
I have found a work around. when entering snippet, explicitly turn on Tab Moves Focus mode by pressing Ctrl + M.
But I think VS Code should automatically enter into Tab Moves Focus mode when inserting snippets and automatically turn off Tab Moves Focus mode when editing the snippet is over
The text was updated successfully, but these errors were encountered:
Please share the snippet and make your keybindings.json file. It's likely that you or an extension have reconfigured what Tab does. Best is to start so: code --user-data-dir ~/Desktop/test1-data --extensions-dir ~/Desktop/test1-ext
in keybindings.json there was keybinding that I once created to use with VS Code Vim, { "key": "tab", "command": "tab", "when": "editorTextFocus && !editorTabMovesFocus" },
I guess I have to think of an alternative to this😅
Does this issue occur when all extensions are disabled?: Yes
ISSUE
Suppose I inserted a snippet
Now my focus is on
Position 1
.When I press
Tab
, instead of Moving my focus toPosition 2
, the editor inserts a Tab Space inPosition 1
Whats Expected? Instead of inserting a Tab Space in
Position 1
, move the focus of the cursor toPosition 2
I have found a work around. when entering snippet, explicitly turn on
Tab Moves Focus
mode by pressingCtrl + M
.But I think VS Code should automatically enter into
Tab Moves Focus
mode when inserting snippets and automatically turn offTab Moves Focus
mode when editing the snippet is overThe text was updated successfully, but these errors were encountered: