Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Add JavaScript FunctionNew to Visual Studio Code? Get it now.
Add JavaScript Function

Add JavaScript Function

motschi

|
4,132 installs
| (1) | Free
Easily add your already written function to your file.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Add JavaScript Function

Easily add your already written function to your file.

Installing

Extension is available for free in the Visual Studio Code Marketplace.

Usage

  1. Highlight a written function
  2. Press Cmd+Shift+A
  3. The function will be added at the end of object or file

Features

Select the function you want to add whether as method which is invoked in object context or as an unbound function.

Object Context

object method

Unbound Function

unbound function

Known Issues

Methods in object context are not added with the correct white space. You have to tab to do your stuff.

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