Simple script to renumber the codelines in any Sinumerik file (arc, mpf, spf...)
Features
Renumbers the code lines with the ability to set start-number and increments as well as reformat your program
Usage
Open the console with STRG+Shift+P and type "renumber". Execute the command (sinumerik-line-renumber.renumber). Increments and starting number can be set in the settings page.
Open the console with STRG+Shift+P and type "reformat". Execute the command (sinumerik-line-renumber.reformat).
Requirements
none
Extension Settings
Starting number - determines the number the renumbering will start from - Example: This value set to 1000 and the renumbering will start with N1000
Increment - determines the increments in which each line will be renumbered - Example: With a starting value of 1000 and the increment set to 5, renumbering will look like N1000, N1005, N1010...
Known Issues
Code without line numbers cant be reformated
[1.1.9]
Added support for LOOPS and FOR/ENDFOR
Advanced Error-handling
[1.1.6]
Added some safety checks for removing whitespaces
[1.1.5]
Small bugfixes
[1.1.4]
Added highlights for missing IF/ENDIF and WHILE/ENDWHILE function
Added support for missing brackets
[1.1.3]
Added support for GOTO jumps in IF statements
[1.1.2]
Small bugfixes
[1.1.1]
Small bugfixes
[1.1.0]
Added the reformat option to tidy up your NC program
Improved the renumbering
Added MultiARC support
Added safetycheck for reformating which notifies if code is missing
Automatically removing all whitespaces at the Beginning and End of lines and converting TABSPACE into normal spaces