# 编辑器列选择模式的两个场景

{% embed url="<https://v.douyin.com/r6puU68/>" %}

{% embed url="<https://www.bilibili.com/video/BV1jr4y167ca/>" %}

现在啊

大部分编辑器都支持这种列选择模式

我就发现我用过以后

就再也离不开这功能了

那举两个场景

第一个哈

比方说想把这些数据添加到一个集合里

那我就可以这样 list.add

这样就可以了

那第二个场景呢

就是

比如说我想把它写成逗号分隔的模式

我也可以列选择，大家看

然后呢选择上之后按逗号

然后：（向后）删除键

这样就可以了

那有时候呢他又是一个字符串格式的

我们可以选中之后呢

单引号、逗号、再来个单引号

然后在 sublime 里面

他会自动在后边再补一个单引号

没关系我们再删除键把它删一下

然后再删一下把那个换行删掉

大家看！他就出来 这样了

然后第一个再补一个单引号

这样就可以了

我就发现哈这种不起眼的小功能

反而特别能提高我们的工作效率


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sunzsh.gitbook.io/xiaoshan.bug/bian-ji-qi-lie-xuan-ze-mo-shi-de-liang-ge-chang-jing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
