my problem is that when I press CTRL + up or down arrow, the cursor doesn't move when it reaches the border of the page, and therefore when I release the CTRL button, the page "bumps" to where the cursor is.
Is it possible to change this behaviour? For example in Visual Studio, the cursor is "anchored" to the top of the page if you press CTRL + down arrow.
Thanks in advance
VS Code Auto Format On SaveOpen Visual Studio Code editor. Click the “Settings” gear icon in the bottom-left corner. Search “Formatter” and click the “Editor: Default Formatter” option. From the drop-down menu, select whichever code formatter you want to use.
You can define a keyboard shortcut for any task. From the Command Palette (Ctrl+Shift+P), select Preferences: Open Keyboard Shortcuts File, bind the desired shortcut to the workbench.action.tasks.runTask command, and define the Task as args .
There is a workaround. Edit your keybinding.json and add this...
{
"key": "ctrl+up",
"command": "editorScroll",
"when": "editorTextFocus",
"args":
{
"to": "up",
"by": "line",
"revealCursor": true
}
},
{
"key": "ctrl+down",
"command": "editorScroll",
"when": "editorTextFocus",
"args":
{
"to": "down",
"by": "line",
"revealCursor": true
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With