Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Function to Arrow ConverterNew to Visual Studio Code? Get it now.
Function to Arrow Converter

Function to Arrow Converter

KISHOREKUMAR S

|
1 install
| (0) | Free
Converts standard JS functions to arrow functions.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Function to Arrow Converter

A simple, fast, and focused VS Code extension that converts standard JavaScript and TypeScript function syntax into modern arrow functions.

Features

Quickly refactor your older codebase or speed up your workflow. This extension handles both named functions and anonymous functions.

Before:

function calculateTotal(price, tax) { return price + (price * tax); }

After:

const calculateTotal = (price, tax) => { return price + (price * tax); }

How to Use

Highlight the standard function you want to convert in your editor.

Right-click the highlighted text to open the context menu.

Select "Convert to Arrow Function".

(Alternatively, open the Command Palette Ctrl+Shift+P / Cmd+Shift+P and search for "Convert to Arrow Function").

Supported Languages

This extension is active and available in the following file types:

JavaScript (.js)

TypeScript (.ts)

React / JSX (.jsx)

React / TSX (.tsx)

Release Notes

1.0.0

Initial release of Function to Arrow Converter!

Added support for regex-based conversion of named and anonymous functions.

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