VS Code on Windows: run a Python file that outputs markdown in the debugger and pipe the output to a file. You get a Byte-Order Marker (BOM) at the beginning. Open the file in Obsidian and it doesn't render correctly. Solution: instead of piping the file directly, use some Powershell magic:
"args": ["|", "Out-File", "-Encoding", "UTF8NoBOM", "myfile.md"]
Brought to you by Obscure-Windows-Problems-r-Us.
Using VS Code to debug a WSL application:
wslpath 'C:\Users\$USER\AppData\Local\Programs\Microsoft VS Code\bin\code'
alias code=$(result of that last command)
spack load (any dependencies of the project that need to be loaded)
code .
Installed and uninstalled two VS Code extensions meant to provide MySQL connections. Neither one was able to connect to my database. Guess I'll stick to the WSL command line. 🤷
What is Microsoft doing with Visual Studio? Seems like they might sunset it in favor of VS Code? But they still seem to update it pretty regularly.