Associate PS1 files with Windows Terminal

To run powershell files directly into Windows Terminal run this powershell script as administrator :

cmd /c assoc .ps1=PowerShellFileV
cmd /c ftype PowerShellFileV=wt.exe PowerShell.exe -NoExit -Command "& `"%1`""

⚠️ You have to keep in mind that if it is not available by default, it might be for a good reason. It might be dangerous to have this as you would be running malicious scripts without wanting to.

Convert SVG files to PDF or PNG with InkScape and PowerShell

InkScape is a very useful tool to create visuals and documents. A boring task with InkScape is the exportation to PNG or PDF. A simple PowerShell script can help quickly export evcey SVG from a directory.

Continue reading Convert SVG files to PDF or PNG with InkScape and PowerShell

Duplicate Selection in Visual Studio

In numerous editors, the shortcut Ctrl + D duplicates current selection or current line. Visual Studio can't do that by default.

Thankfully Chris Lajoie developped a plugin to do that :
Duplicate Selection

The default shortcut is Alt + D but with a simple modification in shortcut settings you can use Ctrl + D.