Skip to content

Instantly share code, notes, and snippets.

@jvacek
jvacek / Remove unused python imports on save in VSCode.md
Last active June 18, 2023 10:20
Remove unused python imports on save in VSCode

Auto-remove unused python imports in VSCode on save

I could not find a proper full configuration for this online, and I know I'll need this again in the future.

There are two ways to achieve this with some plugins; one via hitting the shell and doing an in-place replace, the other is by doing it with extensions configurable in vscode. Both should give you the same results.

Install VSCode extensions needed:

If running via bash:

@TAG-Epic
TAG-Epic / socketfix.py
Last active December 5, 2022 11:22
Modified version of AlexFlipnote's LavaLink fix. LICENCED UNDER THE MIT LICENSE.
"""
Restores the old "on_socket_response" event
Just load this cog and it should fix your lavalink/slash command issues
Remember to set "enable_debug_events" to True in the bot!
"""
import zlib
import discord
from discord.ext import commands