How do I replace text in a selection?

前端 未结 11 1916
借酒劲吻你
借酒劲吻你 2021-01-29 19:10

I\'ve just started using Sublime Text 2, coming from emacs.

I have a region of text selected. Within that region, I\'d like to replace all text instances of \'0\' with \

11条回答
  •  梦毁少年i
    2021-01-29 19:26

    1. Select the item you want to replace (double-click it, or Ctrl - F to find it)...

    2. Then do a (Ctrl - Apple - G) on Mac (aka. "Quick Find All"), to HIGHLIGHT all occurrences of the string at once.

    3. Now just TYPE your replacement text directly... All selection occurrences will be replaced as you type (as if your cursor was in multiple places at once!)

    Very handy...

提交回复
热议问题