Sublime Forum

Any way to match case when typing over multiple ctrl+Ds?

#1

It’d be awesome if when I ctrl/cmd+D through a document there was some way to match the capitalization pattern of the original selection. So if I select featured and Featured and replace it with a different word it would end up capitalized in the second instance. This may be overly specific and hard to find the exact pattern on, but it comes up for me a LOT when working on HTML.

1 Like

#2

I you need to replace your text by another one in a know list, you can use these plugins that take care of the case (like “left” -> “right” or “Left” -> “Right”):
https://github.com/rmaksim/Sublime-Text-2-Inc-Dec-Value
https://github.com/gordio/ToggleBool
I you need something more generic, you have to do it by yourself, don’t think somewhat like this will ever be included in the core ST2.
You can modify the ToogleBool plugin and ask for the new value instead of getting it from a predefined list.

0 Likes

#3

If you use the Find dialog and click the Case-Sensitive button to the left, ST remembers this setting for Ctrl-D (and many other features).

0 Likes