Sublime Forum

Write a command?

#1

In Textmate’s bundle editor it allows me to create commands, I was curious if Sublime Text 2 has this ability?

I am looking to make a command that takes my highlighted text and makes it lowercase, and then also replace spaces with underscores, and assign it to a keyboard combination.

Thank you.

0 Likes

#2

Sounds like your describing the CaseConversion plugin: https://github.com/jdc0589/CaseConversion. Just download the plugin and put it in your packages directory (Preferences > Browse Packages). Use the command “convert to pascal.” (Keybinding is ctrl+alt+c, ctrl+alt+p).

0 Likes

#3

CaseConversion doesn’t seem to be working for me on my Mac. Keybindings don’t do anything, and there doesn’t seem to be any menu items added by the plugin to manually click.

0 Likes