tango4567 / solutions

Here I am adding lots of different stuff. This is the collection of problems with their solutions. Most important please share good vibes and correct me if you found anything wrong here. Thanks in advance.
Apache License 2.0
5 stars 0 forks source link

How to switch text case in visual studio code #59

Closed tango4567 closed 1 year ago

tango4567 commented 1 year ago

I need to convert some text from lower to upper case and upper to lower case using keyboard shortcut.

tango4567 commented 1 year ago

Step 1: File-> Preferences -> Keyboard Shortcuts

Step 2: Search for editor.action.transformToUppercase"

keybinding

Step 3: Click the + icon.

Step 4: In the popup, press the desired key combination and hit enter: Shift + Alt + U

Reference for keybindings.json

[
    {
        "key": "ctrl+shift+u",
        "command": "editor.action.transformToUppercase",
        "when": "editorTextFocus"
    },
    {
        "key": "ctrl+shift+l",
        "command": "editor.action.transformToLowercase",
        "when": "editorTextFocus"
    }
]

👇 Solution Source: 👇 Note: Both solution are linked with updated solution Stackoverflow Updated Solution Stackoverflow Old Solution