Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>SelnerNew to Visual Studio Code? Get it now.
Selner

Selner

EdGraVill

|
105 installs
| (1) | Free
Run a javascript command for the selected text provided in the "sel" variable
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Selner Logo

Selner

Selection + Runner

Perform a javascript string transform directly in your vscode's selection.

Now with multi selection support

Browser Support

Extension Overview

Features

Run a javascript transform script in the selected text

Select any text in your editor and run Selner command (⌘ + P -> Selner or Ctrl + P -> Selner).

Save the script

And use it as many time as you like without writing the script again. Also add a name and a description to quickly see what to expect.

Delete a script

If you don't need it anymore, or you want to replace it.

Run a single script

Without saving it. And just do it.

Usage

Select any text in your editor and run Selner command (⌘ + P -> Selner or Ctrl + P -> Selner).

The selected text will be trated as string no mather the language you are using.

Inside the script input access the selected text with sel variable. You will get a realtime preview of your script Previewer

Script will be evaluated with the selected and the result will replace the original selection. Imagine it like a function and you're writting the statement just after the return keyword.

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