Skip to content

Commit 283495d

Browse files
committed
✨ feat(update keyboard shortcut from Ctrl+Shift+F to Alt+Shift+L for cycling formats)
1 parent e7276ac commit 283495d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ Select any text, right-click, and choose **Change case** → pick the desired fo
5656

5757
## Keyboard Shortcut
5858

59-
Press **`Ctrl+Shift+F`** with text selected to **cycle** through formats in order:
59+
Press **`Alt+Shift+L`** with text selected to **cycle** through formats in order:
6060

6161
```
6262
camelCase → snake_case → kebab-case → CONSTANT_CASE → Train-Case → lower words → UPPER WORDS → camelCase → …
6363
```
6464

65-
The shortcut only activates when the cursor is inside the editor with a selection, so it does not conflict with the default "Find in Files" shortcut. You can customise the keybinding any time via **File → Preferences → Keyboard Shortcuts**.
65+
The shortcut only activates when the cursor is inside the editor with a selection. You can customise the keybinding any time via **File → Preferences → Keyboard Shortcuts**.
6666

6767
## Contributing
6868

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"keybindings": [
7373
{
7474
"command": "extension.formatSwitcher.cycleCase",
75-
"key": "ctrl+shift+f",
75+
"key": "alt+shift+l",
7676
"when": "editorTextFocus && editorHasSelection"
7777
}
7878
],

src/caseConverters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export type CaseType =
77
| 'kebabCase'
88
| 'trainCase';
99

10-
/** Ordered cycle: each Ctrl+Shift+F advances to the next format */
10+
/** Ordered cycle: each Alt+Shift+L advances to the next format */
1111
export const CYCLE_ORDER: CaseType[] = [
1212
'camelCase',
1313
'snakeCase',

0 commit comments

Comments
 (0)