Skip to content

Autohotkey v2 Class to paste color formatted code from VSCode to Discord

Notifications You must be signed in to change notification settings

gvieiraaa/DiscordANSI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

DiscordANSI

Autohotkey v2 Class to paste color formatted code from VSCode to Discord

Usage:

#Requires AutoHotkey v2.0
#Include DiscordANSI.ahk

#HotIf WinActive("ahk_exe Discord.exe") ; conditional hotkey
^+v::DiscordANSI().paste() ; Hotkey ctrl shift v pastes the parsed text

Only tested locally, I'm not sure if it will work for everyone without changes.

DiscordANSI() can have an optional True/False argument to exclude the color White. The default is True.

Some lighter colors on my theme ended up comparing closer to white than their actual color, like light blue becoming white instead of blue, so I prefer that option as True (default).

About

Autohotkey v2 Class to paste color formatted code from VSCode to Discord

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published