Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Refactor Constant RadarNew to Visual Studio Code? Get it now.
Refactor Constant Radar

Refactor Constant Radar

VaultOps

| (0) | Free
Finds repeated literals in selected code blocks to suggest constant extraction.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Refactor Constant Radar

Finds repeated literals in selected code blocks to suggest constant extraction.

Archetype: refactor.helpers (refactor)

Usage

Use the Command Palette (Ctrl/Cmd+Shift+P) and run the commands listed below.

Command surface

  • refactor-constant-radar.suggestConstants - Suggest constants: Detect repeated literals and suggest constant extraction targets.
  • refactor-constant-radar.suggestRenames - Suggest rename variants: Generate consistent rename candidates for selected symbols.

Refactor mode

  • Literal repetition detector
  • Rename candidate generator
  • No project-wide rewrite automation

Practical usage

  1. Select a suspicious region.
  2. Run constant suggestion.
  3. Apply manual refactor with your own review standards.

Local development

npm install
npm run build
npm test

Use F5 in VS Code to launch an Extension Development Host.

Packaging

npm run package

Module notes

  • UI settings are exposed in workspace settings under this extension namespace.
  • Local run metadata uses ExtensionContext.globalState only.
  • Analytics is local-only and disabled unless FOF_ANALYTICS_OPT_IN=true.

Marketplace submission notes

  • Set a real publisher in package.json.
  • Replace placeholder assets in assets/ (icon + screenshots).
  • Upload .vsix or release source archive from dist-submission/.

Support

For support, contact support@example.com.

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