This extension is to assist in software development that includes Fanuc proprietary Teach Pendant Programming. It contains a defined syntax and custom theme, as well as multiple coding efficiency, autofill features, commands, and interactive webviews.
Features
Automatic Line Renumbering: Automatically renumbers in-text lines in .ls files when changes are made.
Automatic Semicolon Placement: Automatically ends in-text lines in .ls files with a semicolon.
Label Webview Command: View all the Labels and Jump Labels in your code and move to the line number.
Register & I/O Webview Command: View all of the LS file data types and I/O in your active file. Adds button to replace name in the active file, or all in directory. Jump to line in code of each item with arrow buttons.
CodeFanuc Theme: Custom theme for LS, KL, DT, and CF filetypes.
CodeFanuc Theme Screenshot
Label Webview Screenshot
Register & I/O Webview Screenshot
Requirements
VS Code 1.95.0
Usage
CodeFanuc Theme: Set using the Color Theme option in VS Code.
Automatic Line Renumbering: This feature is enabled by default.
CAN BE DISABLED with user setting "autoLineRenumber": false
Ctrl+Click to Open Filename: Automatically open a file through text by clicking on it while holding ctrl.
Automatic Semicolon Placement: Attached to Line Renumbering.
Label Webview Command: Use the command fanuctpp.openLabelView to open this webview. Ctrl+Shift+P
Register & I/O Names Webview Command: Use the command fanuctpp.openNameView to open this webview. Ctrl+Shift+P
Ctrl+Click to Open Filename: Ctrl+click on a program name in CALL/RUN 'programName' to open the corresponding file if it exists in the same directory.
Installation
Install the extension from the VS Code Marketplace.
Contributing
Contributions are welcome! Please open an issue or submit a pull request on GitHub.