Closed wibotwi closed 6 months ago
actually better use: when=explorerViewletVisible && filesExplorerFocus
IntelliJ supports triple file comparison, but VSCode doesn't, so we better to use listDoubleSelection
in VSCode
{
"key": "ctrl+d",
"mac": "cmd+d",
"command": "compareSelected",
"when": "filesExplorerFocus && !explorerResourceIsFolder && !inputFocus && listDoubleSelection",
"intellij": "Compare Selected Files"
},
https://code.visualstudio.com/api/references/when-clause-contexts#available-context-keys
I manually added that keybinding with when=!editorTextFocus, which is needed to avoid conflicts with duplicate line in editor It works fine It does not compare dirs though, I assume VS Code does not know how to do that