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. |