Xcode Command-Slash Shortcut to Comment Only Works Sometimes
For an Xcode 8, solution is sudo /usr/libexec/xpccachectl and restart your computer.
For an Xcode 8, solution is sudo /usr/libexec/xpccachectl and restart your computer.
Comments in .htaccess must be on their own line, not appended to other statements. The last rule doesn’t work because the comments aren’t really comments. Comments in htaccess must begin with a # (must be at the start of a line), and not arbitrarily anywhere. In the second case, the #bla bla bla is interpreted … Read more
You can do =begin [Multi line comment] =end =begin and =end must be at the beginning of the line (not indented at all). Source Also, in TextMate you can press Command + / to toggle regular comments on a highlighted block of code. Source
First of all, you should remove the original eclipse template because it is just noisy junk. Either put meaningful docs in or don’t put anything at all. But useless restating of the obvious using IDE templates just clutters the code. Second, if you are required to produce javadoc, then you have to make the comment … Read more
Jinja2 has no support for comments within a {{ … }} statement. You can only use comments outside of such statements, and then only with {# .. #} or ## comment. {# .. #} is only meant for disabling part of a template or adding comments outside of other Jinja2 syntax. You can’t nest these. … Read more
For intellij/android studio there is an amazing solution. Start with: //region Description and end with: //endregion The shortcut for that is in the menu you can open with Command+Alt+T (Mac) or Ctrl+Alt+T (Windows) You can also add your own line for additional visual separation if you need it. The region can be contracted and expanded … Read more
CTRL+Q Block comment/uncomment. See Keyboard And Mouse Shortcuts – Notepad++ Wiki.
I like to make use of the fact that names can be documented in multiple places. In the header file, I write a brief description of the method, and document all its parameters – these are less likely to change than the implementation of the method itself, and if they do, then the function prototype … Read more
When you nest a comment, replace “–” with “- -“. When you un-nest, reverse the procedure. It’s not the <!– that is forbidden but the –. Example: <!– some stuff <!- – some inner stuff – -> <!- – a sibling – -> the footer –>
Most of the editors take some kind of shortcut to comment out blocks of code. The default editors use something like command or control and single quote to comment out selected lines of code. In RStudio it’s Command or Control+/. Check in your editor. It’s still commenting line by line, but they also uncomment selected … Read more