欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

在Visual Studio代码中单击时禁用替换预览 vs code disable replace preview 有大用 有大大用

Asked 
Active 7 months ago    
Viewed 556 times
1

I have a similar question to this issue https://github.com/Microsoft/vscode/issues/41581                    

How do you disable the open of a replace preview on click of a find and replace item in a file in visual studio code? There doesn't seem to be a way to alter that in the user settings. I just want to be able to have find and replace text in the side menu, click on the file reported and just be taken to the file.

                   
improve this question                            
asked Aug 24 '18 at 19:42                                
                                   
                               
add a comment                
       

1 Answer

activeoldestvotes                    
       
2

Now there is a way to do it.

This was merged on the vscode project on Nov 2018. Pr for this: https://github.com/Microsoft/vscode/issues/60027                        

If your vscode is up to date you can go to preferences > settings and then write "replace" on "search settings" and you will see the option with the checkbox marked, click on the checkbox and that's it. typing replace on search settings                        

You can also just type "search.useReplacePreview": false if you are seeing your settings file

improve this answer                            
answered May 6 at 13:11                                
                                   
                               
  • Could the OP @noname mark this as the answer? Works for me and very useful. – backspaces Jun 11 at 21:22                                    
add a comment                    
       

 来自 https://stackoverflow.com/questions/52010796/disable-replace-preview-on-click-in-visual-studio-code            

 
活动 7个月前
浏览 556次
1个

我对此问题有类似的问题https://github.com/Microsoft/vscode/issues/41581

如何在Visual Studio代码中单击文件中的查找和替换项后,禁止打开替换预览?似乎没有办法在用户设置中进行更改。我只希望能够在侧面菜单中找到并替换文本,单击报告的文件,然后转到文件即可。

2

现在有一种方法可以做到这一点。

这是合并的vscode项目11月2018年公关这样的:https://github.com/Microsoft/vscode/issues/60027

如果您的vscode是最新的,则可以转到“首选项”>“设置”,然后在““搜索设置””上写“替换”,然后您将看到带有标记复选框的选项,单击该复选框即可。 在搜索设置上输入替换

"search.useReplacePreview": false如果您看到自己的设置文件,也可以输入

来自  https://stackoverflow.com/questions/52010796/disable-replace-preview-on-click-in-visual-studio-code





普通分类: