Code actions

Code actions

Code actions in
FactoryTalk Design Studio
provide automated or semi-automated ways to alter the project content in the form of quick fixes for errors, refactoring suggestions, or code formatting adjustments.
IMPORTANT: When syntax errors exist, code actions may suggest a fix that will correct the current issue detected to make it syntactically correct. But this fix might not result in the code that you intended. Review the updated text in the code editor
Code actions are available from the Code Editor and the Messages list of the Output panel. When Code actions are available, a light bulb icon action icon provides access to a menu that lists available actions.
In the
Code Editor
, the light bulb icon action icon appears beside Code actions available for the DSL code. Select action icon to display a menu that lists available operations.
In the
Messages
list of the
Output
panel, the light bulb icon action icon appears at the right edge of the Description column when there are Code actions available for an error message. Select action icon to display a menu that lists the available operations.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal