如何在 Sublime 中为字符串添加引号?

How to add quote marks to string in Sublime?

在Sublime text editor中,我有一段文字如下(markdown格式的nodejs笔记)

In Nodejs, command-line arguments will be stored in the process object and in the process object there is a property called argv(argument vector) and arguments will be stored in the form of array

如果我想搜索所有 process 个单词并在它们周围添加 markdown 反引号 (`),我该如何在 sublime 中执行此操作?

如果没有字符串"process"在单词中间的地方,比如"subprocess",我会这样做:

  1. Ctrl+f打开搜索。
  2. 在搜索字段中输入 process
  3. Alt+Enter到select所有巧合。
  4. 相应地进行编辑。

如果我想检查每个巧合以避免错误地添加引号,我会改为:

  1. Ctrl+h打开搜索和替换。
  2. 在搜索字段中输入 process
  3. 在替换字段中输入 `process`
  4. 点击查找查看下一个巧合。
  5. 根据需要单击“替换”或“查找”。