Replace with next value (ctrl shift dot) in Visual Studio Code

前端 未结 3 1550
长发绾君心
长发绾君心 2021-01-04 23:24

Does anyone know how \"Replace with next value\" (ctr + shift + dot) works ?

I am unable to get this shortcut to do anything on my vscode.

I tried googling

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-05 00:24

    As noted by @Félix Caron, this is how to swap the two keys.

    keybindings.json
    { "key": "ctrl+shift+oem_period", "command": "editor.action.inPlaceReplace.up",   "when": "editorTextFocus && !editorReadonly" },
    { "key": "ctrl+shift+oem_comma",  "command": "editor.action.inPlaceReplace.down", "when": "editorTextFocus && !editorReadonly" },
    

    Moreover, in my case as I have breadcrumbs enabled "breadcrumbs.enabled": true,, the replaceUp key triggered breadcrumbs instead, so I had to unbind it.

    { "key": "ctrl+shift+oem_period", "command": "-breadcrumbs.toggleToOn",           "when": "!config.breadcrumbs.enabled" },
    { "key": "ctrl+shift+oem_period", "command": "-breadcrumbs.focusAndSelect",       "when": "breadcrumbsPossible" },
    

提交回复
热议问题