Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>cobcleanNew to Visual Studio Code? Get it now.
cobclean

cobclean

KarlMogensen

|
1 install
| (0) | Free
cobol formatter
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

cobclean README

todos

  • [x] get basic running
  • [x] get test suite running npm test
  • [x] setup task to do it
  • [x] setup simple test framework
  • [x] setup git
  • [X] support auto uppercasing
    • [X] support not uppercasing string constants
  • [x] test to ensure the format only is paragraph wise
  • [-] support auto align
    • [X] for comments - should start with * at col 8
    • [X] for the header (first line) - should start at 9
    • [X] for contents lets go with col 11 align for now
    • [X] for move inline to - seperate to two lines
    • [ ] move align indents const init = MYHEADER |SECTION. MOVE A IN AGROUP TO A IN BGROUP MOVE AA IN AGROUP TO AA IN BGROUP MOVE AAA IN AGROUP TO AAA IN BGROUP .; const exp = MYHEADER SECTION. MOVE A IN AGROUP TO A IN BGROUP MOVE AA IN AGROUP TO AA IN BGROUP MOVE AAA IN AGROUP TO AAA IN BGROUP .;
    • [ ] for anything that is beyond border we need to make it pretty
    • [ ] for anything move without general structure at top - follow standard structure const init = MYHEADER |SECTION. MOVE A IN AGROUP TO A IN BGROUP MOVE AA IN AGROUP TO AA IN BGROUP MOVE AAA IN AGROUP TO AAA IN BGROUP .; const exp = MYHEADER SECTION. MOVE A IN AGROUP TO A IN BGROUP MOVE AA IN AGROUP TO AA IN BGROUP MOVE AAA IN AGROUP TO AAA IN BGROUP .;
    • [ ] for last move need formatting reformats everything const init = MYHEADER |SECTION. MOVE A IN AGROUP TO A IN BGROUP MOVE AA IN AGROUP TO AA IN BGROUP MOVE AAA IN AGROUP TO AAA IN BGROUP .; const exp = MYHEADER SECTION. MOVE A IN AGROUP TO A IN BGROUP MOVE AA IN AGROUP TO AA IN BGROUP MOVE AAA IN AGROUP TO AAA IN BGROUP .;
    • [ ] for two seperate move sections keep indentation group wise
    • [ ] test that if move formatting on more indent crosses the right hand border - if so we want to break the line somewhere for all in that move group
    • [ ] support same kind of formatting from video
  • [ ] formatter able to align everything to do with paragraph
  • [ ] support unit test formatter
  • [X] keep mouse at expected line
  • [ ] support a good way of detecting end when not another procedure like a copybook
  • [ ] figure out why the test output swaps actual and expected and outputs two things
  • [ ] consider format all procedures
  • [ ] once adding more features consider renaming test suite to be only procedure scoped
  • [ ] add test to assert that scope is only current procedure
  • [ ] formatter also working on testcases
  • [ ] reach first draft publish
  • [ ] future features:
    • [ ] full formatter that can be invoked on the thing
    • [ ] convert current selection to comments
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft