Skip to content

pouyakary/comment

Repository files navigation

Comment 6 ✨

With ❤️ by Dragon's Lover.

Comment 6 is a way to decorate your code with titles and separator lines to organize the portions of a file. I have always had a really hard time to keep track of where a function starts and where it ends. While there are millions of ways to tackle the problem, I simply wanted to have what I had in notebooks: good old lines.

With Comment 6 you can simply create these headings:

Screen recording of comment generation in Comment 6

And edit them whenever you want:

Screen recording that shows the editing of a comment in Comment


🧨 LOOKING FOR THE LEGACY VERSION?
Comment 6 is a fully rewritten version. Every line of it is fully brand new. If you wish, you can download the last version of Comment V from it's GitHub releases.


Notes 💡

  • Indentation Matters — The way comment works is that you pick an empty line and indent as far as you wish your comment is going to be indented. You then start typing the comment and then use the menu or keybindings to generate the comment. The size and indentation of your resulting comment is determined by that indentation.

  • Only Use These Comments To Create Logical Parts In Your Codes — Try to separate, types, functions, classes, the parts of the classes. The More organized you are the better.

  • Adopt The Clarity Style To Your Codes — Try to have files that are minimal as possible. Have one class per file if you can. When a file move to more than a few hundred lines try to break it into different files. Try to write the best code you can. It always pays the efforts.

Keybindings

Comments Keybindings
🔧 Creating Title Comment alt + y
🔨 Creating Separator Comment alt + l
🧨 Editing Title Comment ctrl + alt + cmd + y

NOTE 💡
These keybindings are chosen such that they are both easy to use within QWERTY and Dvorak layouts.