2021/07/14
that Cmd+D selects the next occurence of the currently-highlighted text in VS Code! Thanks to Mark Brewer for teaching me this!
that Cmd+D selects the next occurence of the currently-highlighted text in VS Code! Thanks to Mark Brewer for teaching me this!
that you can hold shift+alt (linux) or shift+opt (mac) and click to select box of rows and columns in VS Code. See https://code.visualstudio.com/docs/getstarted/tips-and-tricks#_column-box-selection
How to avoid opening live-share sessions in the web vscode version that I hate: https://learn.microsoft.com/en-us/visualstudio/liveshare/quickstart/browser-join#joining-from-the-desktop
That in vscode, you can make your keypresses display on-screen using the “Developer: Toggle screencast mode” command.
To add JSON schema validation to e.g. Cargo.toml files in VSCode using tamasfe.even-better-toml, you can add a special comment:
#:schema https://json.schemastore.org/cargo.json
# see https://taplo.tamasfe.dev/configuration/directives.html#the-schema-directive
That there’s such a thing as “canadian compilation”:
If build, host, and target are all the same, this is called a native. If build and host are the same but target is different, this is called a cross. If build, host, and target are all different this is called a canadian (for obscure reasons dealing with Canada’s political party and the background of the person working on the build at that time).
– https://gcc.gnu.org/onlinedocs/gccint/Configure-Terms.html
That out of ~51672 extensions on the VSCode marketplace, there are only 31 that are marked as commercial software: “Trial” rather than “Free”.
The paying for use of an extension is usually predicated on using a remote API (i.e. remote LLM services) using a paid API key or a subscription associated with an OIDC identity (e.g. a GitHub user account). Most common yet is no monetization scheme, which is understandable – setting up payments isn’t trivial. However, occasionally monetization schemes occasionally appear:
| extension | publisher | license | payment |
|---|---|---|---|
| Database Client | Weijan Chen | MIT | On site, with API call for subscription check |
| DuckDB Sql Tools | Random Fractals Inc. | commercial | GitHub sponsors (probably not checked) |
| Data Sync | Nguyen Ngoc Long | MIT | various sponsors (probably not checked) |
| DVT IDE | AMIQ EDA s.r.l. | commercial | On-site license purchase |
| Local CI | Local CI | GPL-2 | subscription on website; issues license keys |
That VSCode has a “profiles” mechanism that allows bulk management of settings: https://code.visualstudio.com/docs/editor/profiles. These will make a fine addition to my dotfiles!
Clicking “Debug Test” in VSCode doesn’t use the configuration in launch.json: https://github.com/golang/vscode-go/wiki/debugging#:~:text=the%20%22debug%20test%22%20codelens%20and%20the%20test%20ui%20do%20not%20use%20the%20launch.json%20configuration
That gopls can emit UI hints about escape analysis: https://github.com/golang/vscode-go/wiki/settings#uidiagnosticannotations