https://github.com/stuomas/tc2comment
AutoHotkey script to comment/uncomment selection with a shortcut key in TwinCAT 2
https://github.com/stuomas/tc2comment
Last synced: 4 months ago
JSON representation
AutoHotkey script to comment/uncomment selection with a shortcut key in TwinCAT 2
- Host: GitHub
- URL: https://github.com/stuomas/tc2comment
- Owner: stuomas
- Created: 2018-07-23T11:47:23.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-25T07:10:43.000Z (over 7 years ago)
- Last Synced: 2025-07-20T22:22:54.579Z (11 months ago)
- Language: AutoHotkey
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
tc2comment
AHK script to comment/uncomment a selection with a shortcut key especially in TwinCAT 2, where such built-in functionality is missing. Uses the clipboard to temporarily copy selected text, modify it, paste it, and restore the old clipboard contents automatically.
By default, it wraps the selected block between `(*` and `*)` when pressing `ctrl + <` and is only active inside TwinCAT2/Codesys environment. Modify to your own taste and needs. If the script notices the selection is already commented, it will be uncommented. Making the recognition more clever (to support existing inline comments for example) is on the to-do list.