autohotkey自定义快捷键

autohotkey自定义快捷键

代码

#IfWinActive ahk_exe Typora.exe
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
^j::
Send, ``
Send, ``
Send, ``bash
Send, {Enter}
return

功能描述

在Typora窗口按快捷键Ctrl+J快速输入含有bash语法高亮的代码块

下载

编译后的成品:https://fourdmayi.lanzouy.com/irNty13j5zti

这篇文章有用吗?

点击星号为它评分!

平均评分 0 / 5. 投票数: 0

到目前为止还没有投票!成为第一位评论此文章。

发表评论