2
2
{
3
3
"key" : " shift+tab" ,
4
4
"command" : " acceptAlternativeSelectedSuggestion" ,
5
- "when" : " suggestWidgetVisible && textInputFocus && textInputFocus "
5
+ "when" : " suggestWidgetVisible && textInputFocus"
6
6
},
7
7
{
8
8
"key" : " shift+enter" ,
9
9
"command" : " acceptAlternativeSelectedSuggestion" ,
10
- "when" : " suggestWidgetVisible && textInputFocus && textInputFocus "
10
+ "when" : " suggestWidgetVisible && textInputFocus"
11
11
},
12
12
{
13
13
"key" : " tab" ,
36
36
},
37
37
{
38
38
"key" : " ctrl+n" ,
39
- "command" : " workbench.action.files.newUntitledFile"
39
+ "command" : " workbench.action.files.newUntitledFile" ,
40
+ "when" : " (!editorHasCodeActionsProvider && editorTextFocus) || !editorTextFocus"
40
41
},
41
42
{
42
43
"key" : " ctrl+/" ,
75
76
},
76
77
{
77
78
"key" : " ctrl+x" ,
78
- "command" : " editor.action.clipboardCutAction"
79
+ "command" : " editor.action.clipboardCutAction" ,
80
+ "when" : " editorTextFocus && !editorReadonly"
79
81
},
80
82
{
81
83
"key" : " ctrl+shift+alt+down" ,
82
84
"command" : " editor.action.copyLinesDownAction" ,
83
- "when" : " editorTextFocus && !editorReadonly"
85
+ "when" : " editorTextFocus && !editorReadonly && !editorHasSelection "
84
86
},
85
87
{
86
88
"key" : " " ,
105
107
{
106
108
"key" : " ctrl+enter" ,
107
109
"command" : " editor.action.insertLineAfter" ,
108
- "when" : " editorTextFocus && !editorReadonly"
110
+ "when" : " editorTextFocus && !editorReadonly && !notebookEditorFocused"
111
+ },
112
+ {
113
+ "key" : " ctrl+right" ,
114
+ "command" : " cursorWordRight" ,
115
+ "when" : " editorTextFocus && !inlineSuggestionVisible && !config.intellij-idea-keybindings.useCamelHumpsWords"
116
+ },
117
+ {
118
+ "key" : " ctrl+right" ,
119
+ "command" : " cursorWordPartRight" ,
120
+ "when" : " editorTextFocus && !inlineSuggestionVisible && config.intellij-idea-keybindings.useCamelHumpsWords"
121
+ },
122
+ {
123
+ "key" : " ctrl+left" ,
124
+ "command" : " cursorWordLeft" ,
125
+ "when" : " editorTextFocus && !config.intellij-idea-keybindings.useCamelHumpsWords"
126
+ },
127
+ {
128
+ "key" : " ctrl+left" ,
129
+ "command" : " cursorWordPartStartLeft" ,
130
+ "when" : " editorTextFocus && config.intellij-idea-keybindings.useCamelHumpsWords"
131
+ },
132
+ {
133
+ "key" : " ctrl+shift+right" ,
134
+ "command" : " cursorWordRightSelect" ,
135
+ "when" : " editorTextFocus && !config.intellij-idea-keybindings.useCamelHumpsWords"
136
+ },
137
+ {
138
+ "key" : " ctrl+shift+right" ,
139
+ "command" : " cursorWordPartRightSelect" ,
140
+ "when" : " editorTextFocus && config.intellij-idea-keybindings.useCamelHumpsWords"
141
+ },
142
+ {
143
+ "key" : " ctrl+shift+left" ,
144
+ "command" : " cursorWordLeftSelect" ,
145
+ "when" : " editorTextFocus && !config.intellij-idea-keybindings.useCamelHumpsWords"
146
+ },
147
+ {
148
+ "key" : " ctrl+shift+left" ,
149
+ "command" : " cursorWordPartStartLeftSelect" ,
150
+ "when" : " editorTextFocus && config.intellij-idea-keybindings.useCamelHumpsWords"
109
151
},
110
152
{
111
153
"key" : " ctrl+delete" ,
112
154
"command" : " deleteWordRight" ,
113
- "when" : " textInputFocus && !editorReadonly"
155
+ "when" : " textInputFocus && !editorReadonly && !config.intellij-idea-keybindings.useCamelHumpsWords"
156
+ },
157
+ {
158
+ "key" : " ctrl+delete" ,
159
+ "command" : " deleteWordPartRight" ,
160
+ "when" : " editorTextFocus && !editorReadonly && config.intellij-idea-keybindings.useCamelHumpsWords"
114
161
},
115
162
{
116
163
"key" : " ctrl+backspace" ,
117
164
"command" : " deleteWordLeft" ,
118
- "when" : " textInputFocus && !editorReadonly"
165
+ "when" : " textInputFocus && !editorReadonly && !config.intellij-idea-keybindings.useCamelHumpsWords"
166
+ },
167
+ {
168
+ "key" : " ctrl+backspace" ,
169
+ "command" : " deleteWordPartLeft" ,
170
+ "when" : " editorTextFocus && !editorReadonly && config.intellij-idea-keybindings.useCamelHumpsWords"
119
171
},
120
172
{
121
173
"key" : " ctrl+shift+]" ,
224
276
},
225
277
{
226
278
"key" : " " ,
227
- "command" : " workbench.action.tasks.reRunTask"
279
+ "command" : " workbench.action.tasks.reRunTask" ,
280
+ "when" : " taskCommandsRegistered && !terminalFocus"
228
281
},
229
282
{
230
283
"key" : " ctrl+shift+d" ,
233
286
{
234
287
"key" : " ctrl+f5" ,
235
288
"command" : " workbench.action.debug.run" ,
236
- "when" : " debuggersAvailable"
289
+ "when" : " debuggersAvailable && !inDebugMode && !terminalFocus "
237
290
},
238
291
{
239
292
"key" : " f10" ,
263
316
{
264
317
"key" : " " ,
265
318
"command" : " editor.debug.action.selectionToRepl" ,
266
- "when" : " debuggersAvailable && editorHasSelection"
319
+ "when" : " debuggersAvailable && editorTextFocus && editorHasSelection"
267
320
},
268
321
{
269
322
"key" : " f5" ,
276
329
"when" : " debuggersAvailable && editorTextFocus"
277
330
},
278
331
{
279
- "key" : " ctrl+shift+d " ,
280
- "command" : " workbench.view. debug"
332
+ "key" : " ctrl+shift+f8 " ,
333
+ "command" : " workbench.debug.action.focusBreakpointsView "
281
334
},
282
335
{
283
336
"key" : " ctrl+t" ,
312
365
},
313
366
{
314
367
"key" : " ctrl+b" ,
315
- "command" : " workbench.action.toggleSidebarVisibility"
368
+ "command" : " workbench.action.toggleSidebarVisibility" ,
369
+ "when" : " !editorFocus && !terminalFocus && !problemFocus && !inDebugRepl"
316
370
},
317
371
{
318
372
"key" : " ctrl+shift+m" ,
337
391
},
338
392
{
339
393
"key" : " ctrl+alt+-" ,
340
- "command" : " workbench.action.navigateBack"
394
+ "command" : " workbench.action.navigateBack" ,
395
+ "when" : " canNavigateBack"
341
396
},
342
397
{
343
398
"key" : " ctrl+shift+-" ,
344
- "command" : " workbench.action.navigateForward"
399
+ "command" : " workbench.action.navigateForward" ,
400
+ "when" : " canNavigateForward"
345
401
},
346
402
{
347
403
"key" : " ctrl+k ctrl+q" ,
418
474
{
419
475
"key" : " f2" ,
420
476
"command" : " renameFile" ,
421
- "when" : " explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus "
477
+ "when" : " explorerViewletVisible && filesExplorerFocus"
422
478
},
423
479
{
424
480
"key" : " " ,
445
501
},
446
502
{
447
503
"key" : " ctrl+shift+e" ,
448
- "command" : " workbench.view.explorer"
504
+ "command" : " workbench.view.explorer" ,
505
+ "when" : " !explorerViewletFocus"
449
506
},
450
507
{
451
508
"key" : " ctrl+b" ,
452
- "command" : " workbench.action.toggleSidebarVisibility"
509
+ "command" : " workbench.action.toggleSidebarVisibility" ,
510
+ "when" : " explorerViewletFocus"
453
511
},
454
512
{
455
513
"key" : " ctrl+shift+g" ,
456
- "command" : " workbench.view.scm"
514
+ "command" : " workbench.view.scm" ,
515
+ "when" : " activeViewlet != 'workbench.view.scm'"
457
516
},
458
517
{
459
518
"key" : " " ,
489
548
},
490
549
{
491
550
"key" : " " ,
492
- "command" : " workbench.action.quickOpenNavigateNext"
551
+ "command" : " workbench.action.quickOpenNavigateNext" ,
552
+ "when" : " inQuickOpen"
493
553
},
494
554
{
495
555
"key" : " alt+f5" ,
509
569
{
510
570
"key" : " ctrl+enter" ,
511
571
"command" : " editor.action.insertLineAfter" ,
512
- "when" : " editorTextFocus && !editorReadonly"
572
+ "when" : " editorTextFocus && !editorReadonly && !suggestWidgetVisible "
513
573
},
514
574
{
515
575
"key" : " " ,
516
- "command" : " workbench.action.terminal.focus"
576
+ "command" : " workbench.action.terminal.focus" ,
577
+ "when" : " !terminalFocus"
517
578
},
518
579
{
519
580
"key" : " ctrl+`" ,
520
- "command" : " workbench.action.terminal.toggleTerminal"
581
+ "command" : " workbench.action.terminal.toggleTerminal" ,
582
+ "when" : " terminalFocus"
521
583
},
522
584
{
523
585
"key" : " ctrl+shift+l" ,
547
609
{
548
610
"key" : " enter" ,
549
611
"command" : " list.select" ,
550
- "when" : " listFocus && !inputFocus"
612
+ "when" : " filesExplorerFocus && foldersViewVisible && !explorerResourceIsFolder && !inputFocus"
551
613
},
552
614
{
553
615
"key" : " ctrl+shift+;" ,
554
- "command" : " breadcrumbs.focus " ,
555
- "when" : " breadcrumbsPossible"
616
+ "command" : " breadcrumbs.focusAndSelect " ,
617
+ "when" : " breadcrumbsPossible && breadcrumbsVisible "
556
618
},
557
619
{
558
620
"key" : " ctrl+alt+c" ,
559
621
"command" : " copyFilePath" ,
560
- "when" : " !editorFocus"
622
+ "when" : " !editorFocus && !terminalFocus "
561
623
},
562
624
{
563
625
"key" : " ctrl+i" ,
571
633
},
572
634
{
573
635
"key" : " ctrl+shift+f" ,
574
- "command" : " workbench.action.findInFiles"
636
+ "command" : " workbench.action.findInFiles" ,
637
+ "when" : " !explorerResourceIsFolder || !filesExplorerFocus"
575
638
},
576
639
{
577
640
"key" : " ctrl+c" ,
650
713
"command" : " cursorBottomSelect" ,
651
714
"when" : " textInputFocus"
652
715
},
653
- {
654
- "key" : " ctrl+home" ,
655
- "command" : " cursorTop" ,
656
- "when" : " textInputFocus"
657
- },
658
716
{
659
717
"key" : " ctrl+shift+home" ,
660
718
"command" : " cursorTopSelect" ,
661
719
"when" : " textInputFocus"
662
720
},
663
- {
664
- "key" : " " ,
665
- "command" : " cursorWordRight" ,
666
- "when" : " textInputFocus"
667
- },
668
- {
669
- "key" : " " ,
670
- "command" : " cursorWordRightSelect" ,
671
- "when" : " textInputFocus"
672
- },
673
721
{
674
722
"key" : " pagedown" ,
675
723
"command" : " cursorPageDown" ,
690
738
"command" : " cursorPageUpSelect" ,
691
739
"when" : " textInputFocus"
692
740
},
693
- {
694
- "key" : " ctrl+left" ,
695
- "command" : " cursorWordLeft" ,
696
- "when" : " textInputFocus"
697
- },
698
- {
699
- "key" : " ctrl+shift+left" ,
700
- "command" : " cursorWordLeftSelect" ,
701
- "when" : " textInputFocus"
702
- },
703
- {
704
- "key" : " ctrl+n" ,
705
- "command" : " workbench.action.files.newUntitledFile"
706
- },
707
741
{
708
742
"key" : " shift+alt+h" ,
709
743
"command" : " references-view.showCallHierarchy" ,
717
751
{
718
752
"key" : " " ,
719
753
"command" : " java.action.showTypeHierarchy" ,
720
- "when" : " editorLangId == java && editorTextFocus"
754
+ "when" : " editorLangId == java && javaLSReady && editorTextFocus"
721
755
}
722
756
]
0 commit comments