How to turn off the prettier trailing comma in VS Code?

Since you are working on the Tour of Heroes project, it is maybe the .editorconfig file there that introduces conflicts with your VSCode Prettier settings. Try adding the following .prettierrc file at the root of your project : { “trailingComma”: “none” } The .prettierrc file has the highest priority over any setting, so it should … Read more

Recipe terminated with fatal error: spawn latexmk ENOENT

I had the same problem. The root cause was: (1) software’s bin folder missing from PATH; (2) bad file privileges. Consequently, VSC couldn’t access latexmk, which explains the error messages. In my case, the problem occurred on a mac, and specifically after I installed MacTex, which, in turn, installs Tex Live. I believe the same … Read more

Can GitHub Copilot stop auto-suggesting, instead be triggered by a keystroke?

In settings.json (under File, Preferences, Settings), I found that setting the more general option: “editor.inlineSuggest.enabled”: false, Seems to work as I’d hoped. Copilot suggestions are now only provided on-demand, when I press Alt\, and accepted when I press Tab I worry that this might disable other types of suggestions I rely on… but language auto-completion … Read more

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

Ctrl+. (Dot) makes “e” appear instead of showing suggestions in VSCode on Gnome

This is not related to VSCode, as the same thing happens in any text input field across all apps (both on Wayland and Xorg, Fedora). The issue appeared on my pc when I upgraded to Gnome 42, and I still can’t find a way to fix it (keyboard shortcuts don’t have any entry for Ctrl+.). … Read more

Open file instead of open changes by default in source control window

There is an icon which will let you open file itself without needing to right click: It is also possible to change default behavior when left-clicking on the file name since version 1.30: To change it, set in your settings.json: “git.openDiffOnClick”: false If you set it, the logic will inverse. Now, clicking on a file … Read more