Given a file, when the user runs the extension on the file then if the file is a java file, then it extracts the code from it and then generates an equivalent COBOL code for it. This can be one of the
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
This extension is one of the ways to improve the comprehension of COBOL code using one of the most sought out and popular programming - JAVA.
Steps to use the extension :
Once the extension is enabled, open a Java file which has to be converted to equivalent COBOL code.
Then, open the Command Palette (Ctrl+Shift+P on windows or Cmd+Shift+P on Mac) and type the command
Convert Java to COBOL and hit enter.
The conversion process starts and once the process is done, the generated COBOL file will be opened automatically. The generated COBOL code will be saved in the same directory as the input java file that has been used.