'How do I easily copy a filename and a line like "filename:line" in Xcode?

Does there a shortcut for copying the current cursor position's filename and line number in a "filename:line" format? For pasting it in a QuickOpen menu, you know.



Solution 1:[1]

There is a new context menu item "Copy File and Line" appears in the latest Xcode update. Also, it has a default shortcut ???C It wasn't in an Xcode a year before.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Vladlex