Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>hello12138New to Visual Studio Code? Get it now.
hello12138

hello12138

zhipeng.huang

|
13 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

hello README

"keybindings": [ { "key": "cmd+shift+r", "command": "hello.helloWorld" } ]

let editor = vscode.window.activeTextEditor; if (!editor) { return; } let document = editor.document; let selection = editor.selection; let text = document.getText(selection); console.log(111, text); // let result = text.split("").reverse().join(""); let result = text.toLocaleUpperCase(); editor.edit((editBuilder) => { editBuilder.replace(selection, result); });

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft