dotnet-core Attach VS Code to dotnet test First, run dotnet test from a terminal. Then open the VS Code command palette. Choose Debug: Select and Start Debugging. Debug: Select and Start DebuggingNext choose .NET Core Attach. .NET Core AttachFinally, attach
vscode Clear your VS Code User Session VS Code caches a lot. That's helpful but is sometimes a pain. Here is how to clear the workspace / user session session, which, among other things, remembers your recently opened files. Bash in
vscode Allow VSCode through WSL Firewall As far as I can tell, VSCode's Remote - WSL service connects over port `41261`. So, we can allow it through the Firewall like this: sudo ufw allow 41261 comment 'VSCODE'
vscode Use a regular expression in VS Code's find/replace to replace && with JavaScript's optional chaining In December 2019, optional chaining went to TC39 stage 4. Here is a regular expression to replace most instances of foo && foo.bar and baz && baz() with optional chaining.
code Rename Symbol vs Change All Occurances Rename Symbol Works across files. Operates on symbols; therefore, requires language support (e.g. C# supports this). Change All Occurrences Works in the currently open file. Operates on text; therefore, does not require