Find and Replace within a Selection in Xcode 9

蓝咒 提交于 2019-12-10 20:24:36

问题


I use find and replace in selection all the time. It is crucial to my workflow. It seems to be gone from Xcode 9. This was achieved by holding down the option key once the desired text was selected. The option key would change the context of the replace button to replace in selection. This no longer seems to be available.

Is the ability to find and replace within a selection truly gone from Xcode 9? If not, how do I use it?

Edit: for what it's worth I posted a bug report here.

Edit 2: Here is a timed screen grab with me holding down the option key.

Edit 3: My Xcode version is 9.1 (9B55), someone below with 9.2 doesn't have this problem, maybe it's been fixed in the 9.2 beta.


回答1:


Apple is aware of this issue. It is fixed in the latest Xcode 9.2 beta. Hold down the Option key; at the right of the replace field, the All button is replaced by All In Selection.

Screen shot of the About dialog, showing the working version:



来源:https://stackoverflow.com/questions/47254136/find-and-replace-within-a-selection-in-xcode-9

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