comments
Editing method comment template in Netbeans 6.9.1
Method comment templates cannot be customized to the level which is expected in this question. These customization features can be added to the NetBeans IDE and there is a specific way how this can be done as the NetBeans IDE is an open source project working in open source way of development. The typical steps … Read more
Make comments of VSCode start at column position 0
Here is a later and better way to do it: https://stackoverflow.com/a/72311327/836330 It is a little tricky, but test this out. You need a macro extension like multi-command. In your keybindings.json: { // disable ctrl+/ for js/php files only “key”: “ctrl+/”, “command”: “-editor.action.commentLine”, “when”: “editorTextFocus && !editorReadonly && resourceExtname =~ /\\.(js$|php)/” }, { // call the … Read more
Removing all types of comments in java file
You can remove all single- or multi-line block comments (but not line comments with //) by searching for the following regular expression in your project(s)/file(s) and replacing by $1: ^([^”\r\n]*?(?:(?<=’)”[^”\r\n]*?|(?<!’)”[^”\r\n]*?”[^”\r\n]*?)*?)(?<!/)/\*[^\*]*(?:\*+[^/][^\*]*)*?\*+/ It’s possible that you have to execute it more than once. This regular expression avoids the following pitfalls: Code between two comments /* Comment 1 … Read more
Reading lines in a file and avoiding lines with # with Bash
To skip lines starting with #: grep -v ‘^#’ myfile | while read -r file ; do … done Modify the grep command as needed to, for example, skip lines starting with whitespace and a # character.
Is it bad practice to prefix single lines of CSS with // as a personal comment style?
I see that there were/are lots of people complaining about this and since this is an older question, there is probably a lot of people reading it wondering if it is still true, or if there is actually a standard in the first place. Allow me to clear the air. The following are the core … Read more
Commenting code in Notepad++
CTRL+Q Block comment/uncomment. See Keyboard And Mouse Shortcuts – Notepad++ Wiki.
Razor comment syntax
@* here is the code to comment *@
Where is the syntax for TypeScript comments documented?
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
Can a CSV file have a comment?
The CSV “standard” (such as it is) does not dictate how comments should be handled, no, it’s up to the application to establish a convention and stick with it.