VSCode: delete all comments in a file

Easy way: Open extensions (ctrl-shift-x) type in remove comments in the search box. Install the top pick and read instructions. Hard way: search replace(ctrl-h) toggle regex on (alt-r). Learn some regular expressions! https://docs.rs/regex/0.2.5/regex/#syntax A simple //.* will match all single line comments (and more ;D). #.* could be used to match python comments. And /\*[\s\S\n]*\*/ … Read more

What are the key shortcuts to comment and uncomment code?

Keyboard accelerators are configurable. You can find out which keyboard accelerators are bound to a command in menu Tools → Options on the Environment → Keyboard page. These commands are named Edit.CommentSelection and Edit.UncommentSelection. (With my settings, these are bound to Ctrl + K, Ctrl + C and Ctrl + K, Ctrl + U. I … Read more

Commenting code in Scheme

All three of the forms you mention are single-line comments. The double-semicolon may have originally arisen as a cue in Dorai Sitaram’s SLaTeX typesetting package that the comment was to be typeset as ordinary text, rather than as program text. Scheme also has multi-line comments. In particular, it appears that R6RS, like Racket, allows the … Read more

Commenting code that is removed [closed]

Generally, code that is removed should not be commented, precisely because it clutters the codebase (and, why would one comment on something that doesn’t exist?). Your defect tracking system or source control management tools are where such comments belong.

Create “Quick Help” Entry in Xcode

Yes… you can.. Here is a ready-made “Snippet” you can drag or auto-complete, etc… /** * <#summary#> * @param <#name#> <#how you gonna get it?#> * @param <#name#> <#really, there’s more?#> * @return <#name#> <#what do you want!#> */ Drag that “onto” the snippet “thing” and like, you know.. set it up.. and there ya … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)