Sublime Text how to remove plugin

Learn how to easily remove plugins in Sublime Text with a quick example.

Removing a Sublime Text Plugin

Sublime Text is a powerful text editor that allows you to customize it with plugins. But if you no longer need a plugin, you can easily remove it from the editor. Here is an example of how to do that.

The first step is to open up Sublime Text and go to Preferences > Browse Packages. This will open up the Packages folder in your file explorer. Inside this folder, you will find a folder for each of the installed plugins. To remove a plugin, simply delete the folder that corresponds to it.

For example, let's say we want to remove the Markdown Preview plugin. We can find the folder for this plugin in the Packages folder and delete it. Once the folder has been deleted, the plugin will be removed from Sublime Text and will no longer be available.


// Code example
function removePlugin(pluginName) {
    // Find the folder for the plugin
    const pluginFolder = Path.join(Sublime.packagesPath, pluginName);
    
    // Delete the folder to remove the plugin
    fs.removeSync(pluginFolder);
}

That's all there is to it! Removing a plugin from Sublime Text is a simple process and can be done in just a few steps. Once the plugin has been removed, it will no longer be available in the editor.

Answers (0)