Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Require to CamelCaseNew to Visual Studio Code? Get it now.
Require to CamelCase

Require to CamelCase

Indigo Qiu

|
2 installs
| (0) | Free
VS Code extension: Automatically convert require statements to camelCase const declarations
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Require to CamelCase

Visual Studio Marketplace Version Visual Studio Marketplace Installs Visual Studio Marketplace Rating

A VS Code extension that automatically converts require() statements to camelCase const declarations with a single keystroke.

Demo

Demo

Features

  • Quick Conversion: Transform require() statements instantly with Alt+Q
  • Smart Naming: Automatically generates camelCase variable names from module names
  • Multi-Language Support: Works with JavaScript, TypeScript, JSX, and TSX files
  • Clean Output: Produces clean, readable const declarations

Usage

  1. Place your cursor on a require() statement
  2. Press Alt+Q or use the command palette
  3. The statement is instantly converted to a camelCase const declaration

Examples

Before:

require("express");
require("lodash");
require("react-router-dom");
require("./utils/helper");

After (Alt+Q):

const express = require("express");
const lodash = require("lodash");
const reactRouterDom = require("react-router-dom");
const helper = require("./utils/helper");

Installation

From VS Code Marketplace

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "Require to CamelCase"
  4. Click Install

From Command Line

code --install-extension IndigoQiu.require-to-camelcase

From Marketplace Website

Visit the VS Code Marketplace and click "Install".

Commands

Command Keyboard Shortcut Description
Convert to CamelCase Const Declaration Alt+Q Converts require statement to camelCase const

Supported File Types

  • JavaScript (.js)
  • TypeScript (.ts)
  • React JSX (.jsx)
  • React TSX (.tsx)

Configuration

This extension works out of the box with no configuration needed. Simply install and start using Alt+Q to convert your require statements.

Contributing

Found a bug or have a feature request? Please create an issue on our GitHub repository.


Enjoy coding with cleaner require statements!

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