Sublime Forum

Can't figure out how to create a plugin

#1

I took the example code for the “Duplicate” plugin from the Sublime Text examples page: sublimetext.com/docs/plugin-examples

I saved that code into a file named duplicate.py, stored inside … > Packages > User

I then added a keybinding for it to the User .sublime-keymap file: { “keys”: “super+alt+d”], “command”: “duplicate” }

But nothing happens.

After that didn’t work, I tried installing this plugin: bitbucket.org/sir_gollum/sublim … _region.py
To install it, I simply put it in … > Packages > User.

Again, nothing happens. What am I doing wrong?

0 Likes

#2

Those examples are for Sublime Text 1.x, the API reference for ST2 is here: sublimetext.com/docs/2/api_reference.html

0 Likes