Skip to content

Instantly share code, notes, and snippets.

View h2m730131's full-sized avatar

Kevin Huang h2m730131

View GitHub Profile
@h2m730131
h2m730131 / get-latest-ver-tfs-on-solution-open.cs
Last active June 1, 2026 05:28
Visual Studio 2022 + Visual Commander
// Getting Latest Version From TFS on Solution Open
public class E : VisualCommanderExt.IExtension
{
public void SetSite(EnvDTE80.DTE2 DTE_, Microsoft.VisualStudio.Shell.Package package)
{
DTE = DTE_;
events = DTE.Events;
solutionEvents = events.SolutionEvents;
solutionEvents.Opened += OnSolutionOpened;
@h2m730131
h2m730131 / WebSearchShortcutStorage.json
Last active October 31, 2025 02:45
PowerToys Run Config
{
"Google": {
"IsDefault": true,
"Url": "https://www.google.com/search?q=%s",
"SuggestionProvider": "Google"
},
"ChatGPT": {
"Keyword": "gpt",
"Url": "https://chatgpt.com?q=%s"
},
@h2m730131
h2m730131 / karabiner.json
Last active September 8, 2024 16:27
Remap the Keyboard in macOS: Karabiner-Elements
{
"profiles": [
{
"complex_modifications": {
"rules": [
{
"description": "⌃-J to switch between english and 倉頡",
"manipulators": [
{
"conditions": [
@h2m730131
h2m730131 / .ideavimrc
Last active July 10, 2023 02:54
RIder + IdeaVim
"" Source your .vimrc
"source ~/.vimrc
"" -- Suggested options --
" Show a few lines of context around the cursor. Note that this makes the
" text scroll if you mouse-click near the start or end of the window.
" set scrolloff=5
" Do incremental searching.
" set incsearch
@h2m730131
h2m730131 / omnisharp.json
Last active December 7, 2022 03:43
Visual Studio Code + OmniSharp
// Windows: %USERPROFILE%\.omnisharp\omnisharp.json
{
"roslynExtensionsOptions": {
"inlayHintsOptions": {
"enableForParameters": true,
"forLiteralParameters": true,
"forIndexerParameters": true,
"forObjectCreationParameters": true,
"forOtherParameters": true,
"suppressForParametersThatDifferOnlyBySuffix": false,
@h2m730131
h2m730131 / keybindings.json
Last active September 22, 2025 08:51
Visual Studio Code + VSCodeVim
// Place your key bindings in this file to override the defaults
[
// 修改 User Settings:
// "editor.suggest.insertMode": "insert",
//
// 修改 Keyboard Shortcuts:
// * [suggest insert mode: enter for insert, tab for replace · Issue #112613 · microsoft/vscode](https://github.com/microsoft/vscode/issues/112613#issuecomment-750755396)
{
"key": "enter",
"command": "acceptSelectedSuggestion", // to insert
@h2m730131
h2m730131 / .keyboard_setting.ahk
Last active November 17, 2026 04:03
Remap the Keyboard in Windows: AutoHotkey
if not A_IsAdmin {
Run('*RunAs "' A_ScriptFullPath '"')
ExitApp()
}
; Log GUI
; global g_LogGui := Gui("+Resize +AlwaysOnTop", "AHK Log")
; global g_LogEdit := g_LogGui.Add("Edit", "ReadOnly -Wrap w500 h300")
; g_LogGui.Show("NoActivate")
;
@h2m730131
h2m730131 / vimrc
Last active November 17, 2026 05:08
Vim
" Vim Plugin Manager
" call plug#begin()
"
" call plug#end()
" Windows 版 Vim 預設 t_Co=16,不會把 \e[N q 送給終端機;設成 256 色才會
set t_Co=256
" For Windows Terminal you can use something like this:
" Note: This should be set after `set termguicolors` or `set t_Co=256`.
@h2m730131
h2m730131 / .vsvimrc
Last active November 17, 2026 03:25
Visual Studio 2022 + VsVim + ReSharper + PeasyMotion + im-select
" [Introduction | ReSharper Documentation](https://www.jetbrains.com/help/resharper/Introduction__Index.html)
" [Default keyboard shortcut schemes | ReSharper Documentation](https://www.jetbrains.com/help/resharper/Reference__Keyboard_Shortcuts.html?keymap=rs)
" [Keyboard shortcuts - Visual Studio (Windows) | Microsoft Learn](https://learn.microsoft.com/en-us/visualstudio/ide/default-keyboard-shortcuts-in-visual-studio)
" 避免 key mapping 覆蓋 `"` 與 `/` 暫存器, 分別採用 `z` 與 `s` 暫存器替代