scoop

先从 Microsoft Store 安装 Windows Terminal。然后 power shell 执行:

  1. iwr -useb https://gitee.com/glsnames/scoop-installer/raw/master/bin/install.ps1 | iex
  1. scoop install 7zip git
  2. git config --global http.sslVerify false
  3. scoop bucket add extras java versions
  4. scoop install aria2 vscode autohotkey # fail
  5. scoop install python everything wox # su root
  6. scoop install liberica17-jdk scala scala2 maven sbt idea

微软输入法

双拼

  1. win + R,输入 regedit,打开注册表
  2. 打开 计算机\HKEY_CURRENT_USER\Software\Microsoft\InputMethod\Settings\CHS
  3. 新建一个字符串值,名为 UserDefinedDoublePinyinScheme0,值为 小鹤双拼2^*iuvdjhcwfg^xmlnpbksqszxkrltvyovt
  4. 设置微软拼音输入法,选择双拼,把 小鹤双拼 设置为默认

    短语

    date %yyyy%-%MM%-%dd%
    time %yyyy%-%MM%-%dd% %HH%:%mm%:%ss%

    AutoHotKey

    开机启动目录 C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp ``` ;smart win

    q::Send !{f4}

;smart shift up::up up & 1::SendInput +1 up & 2::SendInput +2 up & 3::SendInput +3 up & 4::SendInput +4 up & 5::SendInput +5 up & Esc::SendInput ~

;smart alt !z::Send ^z !x::Send ^x !c::Send ^c !v::Send ^v !a::Send ^a !s::Send ^s !l::Send ^l !f::Send ^f !h::Send ^h !w::Send ^w !r::Send ^r !t::Send ^t

;home end !Left::SendInput {Home DownTemp} +!Left::SendInput +{Home} !Right::SendInput {End} +!Right::SendInput +{End} !Up::SendInput ^{Home} +!Up::SendInput +^{Home} !Down::SendInput ^{End} +!Down::SendInput +^{End}

  1. 另外,调试 ahk 脚本可以运行以下代码。

persistent ;让脚本持久运行不退出

InstallKeybdHook ;安装键鼠钩子

InstallMouseHook ;安装鼠标钩子

keyhistory ;显示历史按键

  1. <a name="x3102"></a>
  2. # idea
  3. <a name="iqSnP"></a>
  4. ## vimrc

set hlsearch “搜索高亮 set ignorecase “搜索忽略大小写 set smartcase “搜索如果同时大小写,自动开启大小写敏感 set scrolloff=3 “ 跳转预留行 set number “当前行号 set relativenumber “相对行号 set history=100 “历史记录 set clipboard=unnamed “系统粘贴板

let mapleader=’;’

noremap m :action SelectIn noremap e :action RecentFiles noremap h gT noremap l gt noremap j :action Back noremap k :action Forward noremap d noremap u

“ 工具窗 noremap at :action ActivateTerminalToolWindow noremap am :action ActivateMavenToolWindow

“ 断点 noremap bb :action ToggleLineBreakpoint noremap br :action ViewBreakpoints

“ 跳转 noremap fs :action FileStructurePopup noremap fp :action ShowFilePath noremap fu :action FindUsages noremap ft :action ReformatCode

noremap gg :action Generate noremap gi :action GotoImplementation noremap gs :action GotoSuperMethod noremap gt :action GotoTest noremap gd :action GotoDeclaration noremap gu :action ShowUsages noremap gv :action ChangeView noremap gq :action QuickJavaDoc

“ 重构 noremap io :action OptimizeImports noremap iv :action IntroduceVariable noremap ic :action IntroduceConstant noremap if :action IntroduceField noremap ip :action IntroduceParameter noremap im :action ExtractMethod

noremap re :action RenameElement noremap rf :action RenameFile noremap rr :action ChooseRunConfiguration noremap rd :action ChooseDebugConfiguration

“ 快速搜索 noremap ss :action GotoSymbol noremap se :action SearchEverywhere noremap sc :action GotoClass noremap sf :action GotoFile noremap sa :action GotoAction noremap sw :action SurroundWith

“ 分屏 noremap ww w “切换分屏 noremap ws s “水平分屏 noremap wv v “垂直分屏 noremap wc c “关闭分屏 noremap wh h noremap wj j noremap wk k noremap wl l

  1. 调整入参顺序 Ctrl + Shift + Alt + 左右箭头<br />调整方法顺序 Ctrl + Shift + 上下箭头
  2. <a name="XShjw"></a>
  3. ## 模板
  4. Editor > File and Code Templates > Includes > File Header
  5. ```java
  6. /**
  7. * TODO
  8. *
  9. * @author maojiajie
  10. * @since ${DATE} ${TIME}
  11. */

Editor > Live Templates > + Template Group > + Live Template

  1. /**
  2. * $END$
  3. *
  4. * @author maojiajie
  5. * @since $DATE$ $TIME$
  6. */

注意设置 Applicable In Java: declaration,并设置 Edit variables,Expression 分别为 date() 和 time()

参考文献