Skip to content
Back to home
Back to blog
Tutorial

Plugins & Extensions: How to Extend PocketCode's Capabilities

Learn how to install, configure, and create your own plugins to customize your development experience in PocketCode.

3 min
By Pelayo Naredo
Plugins & Extensions: How to Extend PocketCode's Capabilities

Plugins & Extensions: How to Extend PocketCode's Capabilities

Plugins are the heart of customization in PocketCode. With the extension system, you can tailor the IDE exactly to your workflow.

What are plugins?

Plugins are modules that extend PocketCode's base functionality. They can add:

  • Support for new languages
  • Code analysis tools
  • Integration with external services
  • Custom themes and styles
  • Shortcuts and automations

Installing your first plugin

Open the Marketplace from the sidebar menu and search for the plugin you need. Tap Install and it will activate automatically.

PluginDescriptionCategory
PrettierAutomatic code formattingProductivity
ESLintStatic analysis for JavaScriptQuality
GitLensAdvanced Git visualizationVersion control
REST ClientTest APIs directlyTools
Tailwind CSS IntelliSenseAutocomplete for TailwindFrontend

Plugin configuration

Each plugin has its own configuration section accessible from Settings > Plugins:

{
	"prettier": {
		"tabWidth": 2,
		"singleQuote": true,
		"trailingComma": "es5"
	},
	"eslint": {
		"autoFixOnSave": true,
		"rules": {
			"no-unused-vars": "warn"
		}
	}
}

Creating your own plugin

PocketCode's plugin SDK lets you create extensions with JavaScript:

// my-plugin/index.js
export default {
	name: "my-plugin",
	version: "1.0.0",
	activate(context) {
		// Your initialization code
		context.registerCommand("myPlugin.greeting", () => {
			context.showMessage("Hello from my plugin!");
		});
	},
	deactivate() {
		// Cleanup when deactivated
	},
};

Plugin structure

my-plugin/
├── package.json      # Plugin metadata
├── index.js          # Entry point
├── README.md         # Documentation
└── assets/           # Icons and resources
    └── icon.svg

Publishing

  1. Package your plugin with pocket-cli pack
  2. Upload the file to the Marketplace
  3. Wait for review (24-48 hours)
  4. Available for the community!

SDK API

The SDK provides access to:

  • Editor API — Manipulate text, selections, and cursors
  • File System API — Read and write project files
  • UI API — Create panels, buttons, and notifications
  • Terminal API — Execute commands
  • Git API — Version control operations

Best practices

  1. Performance: Only load what's needed on startup
  2. Permissions: Only request permissions you actually use
  3. Documentation: Include a clear README
  4. Versioning: Follow SemVer for updates
  5. Testing: Test on different screen sizes

Plugins make PocketCode an infinitely adaptable IDE. Explore the Marketplace or create your own extensions to boost your productivity.

The tool behind this article

Marketplace

Ready to try PocketCode?

Download the app and start coding from your mobile.