Created
July 2, 2016 00:16
-
-
Save gerane/584990f2abdf717076321c74d4261ca6 to your computer and use it in GitHub Desktop.
Place in Microsoft.VSCode_profile.ps1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Register-EditorCommand ` | |
-Name 'ToDo.InsertToDo' ` | |
-DisplayName 'Insert ToDo' ` | |
-SuppressOutput ` | |
-ScriptBlock { | |
param([Microsoft.PowerShell.EditorServices.Extensions.EditorContext]$context) | |
$Message = Read-Host 'Please enter Todo Message' | |
$ToDo = "# [$((Get-Date).ToShortDateString())] ToDo: $($Message)" | |
$context.CurrentFile.InsertText($ToDo, $context.CursorPosition) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment