commit
07fd72f66c
1 changed files with 7 additions and 1 deletions
|
|
@ -134,7 +134,13 @@ Yes, in VS Code, if you don't want to be shown suggestions automatically you can
|
|||
|
||||
### Is there a shortcut to accept one line at a time?
|
||||
|
||||
This is a built-in feature of VS Code, but it's just a bit hidden. See this great [StackOverflow answer](https://stackoverflow.com/questions/72228174/accept-line-by-line-from-autocompletion/78001122#78001122) for more details.
|
||||
This is a built-in feature of VS Code, but it's just a bit hidden. Follow these settings to reassign the keyboard shortcuts in VS Code:
|
||||
1. Press `Ctrl+Shift+P`, type the command: `Preferences: Open Keyboard Shortcuts`, and enter the keyboard shortcuts settings page.
|
||||
2. Search for `editor.action.inlineSuggest.acceptNextLine`.
|
||||
3. Set the key binding to `Tab`.
|
||||
4. Set the trigger condition (when) to `inlineSuggestionVisible && !editorReadonly`.
|
||||
This will make multi-line completion (including continue and from VS Code built-in or other plugin snippets) still work, and you will see multi-line completion. However, Tab will only fill in one line at a time. Any unnecessary code can be canceled with `Esc`.
|
||||
If you need to apply all the code, just press `Tab` multiple times.
|
||||
|
||||
### How to turn off autocomplete
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue