How do I replace text in a selection?

前端 未结 11 1925
借酒劲吻你
借酒劲吻你 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条回答
  •  爱一瞬间的悲伤
    2021-01-29 19:40

    1) Ctrl + F (or Cmd + F on a Mac);
    2) Enter the string you want to find on the input at the bottom of the window.
    3) Press "Find All";

    All of the appearances are now selected. Do whatever you want.

    Aside

    There are a bunch of options at the left of the input that opens on Ctrl + F. There's one that says something like "Find in selected text". Select a bunch of text, check that option and repeat the same steps above starting from 2). Now, only matches belonging to that selection are selected.

提交回复
热议问题