Skip to content
| Marketplace
Sign in
Visual Studio Code>Keymaps>gtfish19-wrap-selectionNew to Visual Studio Code? Get it now.
gtfish19-wrap-selection

gtfish19-wrap-selection

gtfish1988

|
35 installs
| (0) | Free
wrap selection with combination of symbols or your custom pattern
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

personally forked version from jayfidev.tablegenerator-1.0.4

[0.0.2] - 2023-10-11

  1. add a dropbox list for available keys

[0.0.1] - 2023-09-02

  1. fixed default symbols cmd

Use the following setting:

"wrapSelection.patterns": {
    // default pattern triggered by cmd "Wrap selected text using custom pattern"
    "default": "try",

    // all the enabled patterns
    "try": "try:\n    ${text}\n    except Exception as e:\n        print(e)\n        # raise e",
    "log": "console.log(`${text}`, ${text})",
    "promise": "new Promise((yeah, nah) => yeah(${text}))",
    "=>": "() => ${text}",
},
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft