How to turn on auto search on VS Code on macOs?

淺唱寂寞╮ 提交于 2021-01-29 08:57:52

问题


When using the Search functionality within Visual Studio Code on Windows, as I'm typing into the search textbox, it does autocomplete searching. On macOS, I have to hit the enter key for the search to happen.

Is there a way to turn on autocompletion of auto search in VS Code on macOS?

I'm currently on Big Sur. MBP 16" 2019.


回答1:


Maybe you have the searchOnType setting set to false on your Mac.

// Search all files as you type.
"search.searchOnType": true,

// When #search.searchOnType# is enabled, controls the timeout in 
// milliseconds between a character being typed and the search 
// starting. Has no effect when search.searchOnType is disabled.
"search.searchOnTypeDebouncePeriod": 300,

It was added as part of the 1.41 release (make sure to have at least this version):
https://code.visualstudio.com/updates/v1_41#_update-search-results-as-you-type

In full text search, results will now update as you type. This is especially helpful in scenarios like constructing complicated Regular Expression queries, where fast feedback on a query can help you to write the RegEx.

Note: This feature can be disabled by setting search.searchOnType to false, and the delay between typing and searching can be adjusted with search.searchOnTypeDebouncePeriod, which defaults to 300 ms.



来源:https://stackoverflow.com/questions/65421180/how-to-turn-on-auto-search-on-vs-code-on-macos

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!