Replies: 3 comments
-
So I made an attempt to create this extension based on the one I linked above. It is working to some degree but has a few quirks in it if someone with more knowledge than me would like to look at. Also I don't know a lot about GIT either so I'm not attempting to make a pull request at this time. Attached is the extension. You can add the following to settings.json to change the defaults or add any that I might've missed.
Issues:
Future Suggestions
Recording.2024-03-27.121150.mp4 |
Beta Was this translation helpful? Give feedback.
-
One more quick update just because.. I think I have the cursor going to the correct spot with the indention now. I'm just hacking at this so no clue if this is good clean code compared to the rest of the extension. |
Beta Was this translation helpful? Give feedback.
-
I published this extension last night. It seems to work pretty good, but on occasion it does not recognize that an end block is needed. |
Beta Was this translation helpful? Give feedback.
-
I asked Liam about this and he said it would need to be an enhancement so I'm going to add this in case someone more knowledgeable than me would like to take this on. It seems simple but maybe not. But I am so used to using RDi and when you type If x=y; and press enter it will automatically add the EndIf; for you. Or Dcl-Ds myds; and press enter it will automatically add the EndDs;
There is another extension for Ruby that gets close but it's always just adding end. https://github.com/kaiwood/vscode-endwise This would need probably be customizable to allow setting up a begin code block and the end code block.
Some of the things it would need to do is
IF/ENDIF
DOx/ENDDO
DCL-PR/END-PR
DCL-PROC/END-PROC
DCL-DS/END-DS
FOR/ENDFOR
BEGSR/ENDSR
Beta Was this translation helpful? Give feedback.
All reactions