From d5836e58c53f8ec4373155d8182a5f39e22914be Mon Sep 17 00:00:00 2001 From: craft Date: Sat, 21 Feb 2026 20:29:16 +0100 Subject: [PATCH] added readme --- README.md | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a75a412..06dfb16 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,45 @@ # commentcycle -Cycle between regular and prefixed comments \ No newline at end of file +A plugin for Sublime Text 3 that enables cycling between different comment types. Built to be used with draincleaner. + +Created with ChatGPT. + +**Disclaimer: barely tested so be aware of the fact there could be potential risks involved when using this software!** + + +## How to use + +Add commentcycle.py and commentcycle.sublime-settings to the following path (can also be accessed by selecting Preferences > Browse Packages) + +```text +~/.config/sublime-text-3/Packages/User +``` + +Edit commentcycle.sublime-settings to set whatever you want your alternative comment type to be. + +```text +{ + "Python": [ + ["#", ""], + ["#¤", ""] + ], + "JavaScript": [ + ["//", ""], + ["/*", "*/"] + ], + "Markdown": [ + [""], + [""] + ] +} + +``` + +In Sublime Text select Preferences > Key Bindings. Then set custom keybinding to use to cycle between comment types. Add the setting below but change the "§" key to whatever you prefer: +```text +[ + { "keys": ["§"], "command": "commentcycle"}, + +] + +```