Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>FormattedMessageNew to Visual Studio Code? Get it now.
FormattedMessage

FormattedMessage

etaiklein

|
670 installs
| (1) | Free
Replaces a string with <FormattedMessage /> syntax to make translating strings using react-intl easier
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

FormattedMessage

Download: marketplace.visualstudio.com

  1. Select "hi" in code
  2. Right click and select "FormattedMessage (javascript)"
  3. Code now reads <FormattedMessage defaultMessage="hi" description="" id="" />

Select code to use

Changelog

  • 1.0.4:
    • Add configuration to customize id generation pattern based on FormatJS default pattern. Go to Settings > Extensions > FormattedMessage > ID Generation Pattern.
    • Add allowlistedPaths to customize exluding sections of long ids (default file path id generation option only)
  • 0.02:
    • Right click and select "trans.message (python)" for python formatting
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft