The light bulb feature in this version of Visual Studio supports a number of quick actions that enable to you to implement certain constructs in your COBOL code.
You can enable or disable any of the quick actions supported in COBOL from the IDE preferences - click
Tools > Options > Text Editor > Micro Focus COBOL > Quick Actions. The following quick actions are available:
- Enable Quick Actions
- Enabled by default. Uncheck this to disable all light bulbs in the COBOL editor.
- Add missing namespace
- Enables you to resolve unknown types either by generating a new class for them or by adding a an existing namespace to the types.
- Convert to portable COBOL syntax
- Enables you to convert .NET types to COBOL predefined types that can be used on both .NET and JVM platforms.
- Extract selected code to a new copybook
- Enables you to create a new copybook from a selection of code in the editor. The copybooks is then added to the project.
- Implement missing methods
- Enables you to implement any missing methods, properties and events that an interface or an abstract class requires.
- Simplify namespace
- Enables you to remove a namespace in places in the code where it is not required.