Public/Get-Hotkeys.ps1
# ? TITEL Get-Hotkey # ? DESCRIPTION # ? TAGS UserCmdlet Class Enum # ? VERSION 2019.11.08 using namespace System using namespace System.Runtime.InteropServices $ErrorActionPreference = [System.Management.Automation.ActionPreference]::Stop Set-StrictMode -Version Latest enum HotkeyScope { PowerShellConsole VisualStudioCode } class Hotkey { [HotkeyScope]$Scope [String]$Hotkey [String]$Description Hotkey([HotkeyScope]$scope, [String]$hotkey, [String]$description) { $this.Scope = $scope $this.Hotkey = $hotkey $this.Description= $description } } function Get-Hotkeys { [OutputType([PSCustomObject])] Param () Process { [Hotkey]::new([HotkeyScope]::PowerShellConsole , "CTRL + Space" , "IntelliSense aller CmdLets bzw. Parameter") [Hotkey]::new([HotkeyScope]::VisualStudioCode , "CTRL + K, CTRL + S" , "Übersicht der Tastaturbelegung") [Hotkey]::new([HotkeyScope]::VisualStudioCode , "F1" , "VSCode Kommandozeile") [Hotkey]::new([HotkeyScope]::VisualStudioCode , "CTRL + K, CTRL + 8" , "ALLE #region einklappen") [Hotkey]::new([HotkeyScope]::VisualStudioCode , "CTRL + K, CTRL + L" , "Aktuelle #region ein-/aufklappen") [Hotkey]::new([HotkeyScope]::VisualStudioCode , "CTRL + K, CTRL + ´" , "Etwas aufklappen") [Hotkey]::new([HotkeyScope]::VisualStudioCode , "F8" , "Aktuelle Zeile oder Selektion ausführen") [Hotkey]::new([HotkeyScope]::VisualStudioCode , "F5" , "PS1-Datei ausführen / DEBUGGER starten") [Hotkey]::new([HotkeyScope]::VisualStudioCode , "CTRL + ALT + J" , "Snipping einfügen") [Hotkey]::new([HotkeyScope]::VisualStudioCode , "CTRL + F1" , "Online-Hilfe zum akt. Cmdlet") [Hotkey]::new([HotkeyScope]::VisualStudioCode , "CTRL + +" , "Zoom in") [Hotkey]::new([HotkeyScope]::VisualStudioCode , "CTRL + -" , "Zoom out") [Hotkey]::new([HotkeyScope]::VisualStudioCode , "CTRL + Space" , "Autovervollständigung öffnen") [Hotkey]::new([HotkeyScope]::VisualStudioCode , "CTRL + P" , "Dateien schnell öffnen") [Hotkey]::new([HotkeyScope]::VisualStudioCode , "SHIFT + ALT + UP" , "Zeile nach oben kopieren") [Hotkey]::new([HotkeyScope]::VisualStudioCode , "ALT + UP" , "Zeile nach oben verschieben") [Hotkey]::new([HotkeyScope]::VisualStudioCode , "SHIFT + ALT + DOWN" , "Zeile nach unten kopieren") [Hotkey]::new([HotkeyScope]::VisualStudioCode , "ALT + DOWN" , "Zeile nach unten verschieben") } } |