I just solved one of the most annoying problems in the world when coding in VS Code or Cursor!
The problem:
Tab works both for indentation and AI auto-complete. As AI gets faster, it's almost impossible to indent without adding code.
The solution:
Bind ctrl space to do indentLines. Or shift space if you prefer.
* Press ctrl shift P
* Type Preferences: Open Keyboard Shortcuts (JSON)
* Also located in ...Cursor/User/keybindings.json
* Add the following:
{
"key": "ctrl space",
"command": "editor.action.indentLines",
"when": "editorTextFocus && !editorReadonly"
}
ENJOY! Been disturbing me for years.