I saw a WWDC video about
UITests that said if you double-click the blue token field in Xcode, it will become text and remove the menu (aka. the blue thing), but when I double-click the field, it just gets removed.
The double-tap trick is, indeed, not working in Xcode 9. However, we can always use the power of Regex.
For this to work, either:
After that, choose the Regular Expression option by:
The start of the token field is always indicated with
/*@[email protected]*/, followed by the actual selected text. After that, there is a textual representation of all the possible options, finished with
@[email protected]*/. Example:
In our Regex, we should delete everything but the text that comes directly after
/*@[email protected]*/ and before the options block. We can achieve this by capturing that snippet and replacing all of this mess with just that snippet.
For Replace, enter the following:
/\*@[email protected]\*/(.*.)/\*(.*.)@[email protected]\*/
...and for With, enter this:
Click on Replace if you only want to delete the token field from the nearest occurrence after your cursor or choose All if you want to remove them all.