将VS Code光标保留在屏幕上

问题描述 投票:1回答:1

使用Ctrl +向上/向下滚动VS代码时,如何在屏幕上保留文本光标(插入符号)?

我搜索了滚动选项,文本选项,扩展等。无济于事。

visual-studio-code vscode-settings
1个回答
1
投票

我自己没试过,但你看过这个了吗?

安装这个:

https://marketplace.visualstudio.com/items?itemName=geddski.macros

然后使用此示例向ctrl + up / down添加一个宏,并将键从alt + pageup更改为您想要的。

https://github.com/Microsoft/vscode/issues/22796

{
    "key": "alt+pageup",
    "command": "editorScroll",
    "args": {
        "to": "up",
        "by": "page",
        "revealCursor": true
    },
    "when": "editorTextFocus"
}

希望它有效,有一个好的!

© www.soinside.com 2019 - 2024. All rights reserved.