This extension manages target.properties files. It will allow you to quickly generate properties files for stage and development. It will also allow you to highlight strings in code and transform them into properties.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Select the text you want to convert to a property, right click, and choose "Create Property".
This action will create property files for each configured environment in the properties folder if they do not already exist.
The currently selected string will be extracted as a property for the default environment set in the configuration.
Extract property to env.target.properties
Select the text you want to convert to a property, right click, and choose "Create {Env} Property", where {Env} is the desired environment.
The currently selected string will be extracted as a property for the chosen environment.
Create blank individual target property files
Select the xml file, right click, and choose "Create Property Files".
This action will create blank property files for each configured environment in the properties folder if they do not already exist.
Configuration Options
Setup Envs: Allows you to set up the environments for which the properties need to be created or extracted. You can add as many environments as required.
Default "Create Property" env: Set the default environment for which the property will be created when the "Create Property" action is performed. This option is useful when you predominantly work with a specific environment.