Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Dart String RefactorNew to Visual Studio Code? Get it now.
Dart String Refactor

Dart String Refactor

ZhInnovates

|
427 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

dart-string-refactor

Extension is under development, errors may occur

it's vs code extension "dart-string-refactor". help you to extract static string in widget flutter to constant string file

How it Works

Extract Text value

extract any string in widgets flutter to constant class AppStrings in lib\constants\app_strings.dart

for example
       Text( 'Congratulations,
                  style: TextStyle(
                    fontSize: 25,
                  ),),

to

       Text(AppStrings.congratulation,
                  style: TextStyle(
                    fontSize: 25,
                  ),),
how_to_use You can customize the file name and folder path in the extension tab on the workspace setting, or you can simply search it with the keyword Dart String Refactor

settings

Happy Coding!

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