Commenting code in Notepad++
CTRL+Q Block comment/uncomment. See Keyboard And Mouse Shortcuts – Notepad++ Wiki.
CTRL+Q Block comment/uncomment. See Keyboard And Mouse Shortcuts – Notepad++ Wiki.
XXX in a comment is usually a heads-up. It could be: Something that’s not implemented completely correctly. Something that should be fixed later on. Highlighting a possible problem spot. Something you’re not sure about, a question. I’ve often preferred a more descriptive tag like FIXME or TODO or HACK. XXX is often used as a … Read more
Current The TypeScript team, and other TypeScript involved teams, created a TSDoc specification. https://tsdoc.org/ Example straight from the docs: export class Statistics { /** * Returns the average of two numbers. * * @remarks * This method is part of the {@link core-library#Statistics | Statistics subsystem}. * * @param x – The first input number … Read more
I am particularly guilty of this, embedding non-constructive comments, code poetry and little jokes into most of my projects (although I usually have enough sense to remove anything directly offensive before releasing the code). Here’s one I’m particulary fond of, placed far, far down a poorly-designed ‘God Object’: /** * For the brave souls who … Read more
This has recently been discussed on the Node.js mailing list. According to Isaac Schlueter who created npm: … the “//” key will never be used by npm for any purpose, and is reserved for comments … If you want to use a multiple line comment, you can use either an array, or multiple “//” keys. … Read more
YAML supports inline comments, but does not support block comments. From Wikipedia: Comments begin with the number sign ( # ), can start anywhere on a line, and continue until the end of the line A comparison with JSON, also from Wikipedia: The syntax differences are subtle and seldom arise in practice: JSON allows extended … Read more