Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I create a Delete-Line Keyboard shortcut in Xcode 8? The Xcode 3 solutions do not work anymore
    primarykey
    data
    text
    <p>In previous versions of <code>Xcode</code> it was possible to create a key binding to delete the current line. There were different solutions and they are described for example here:</p> <p><a href="https://stackoverflow.com/questions/476953/xcode-delete-line-hot-key">Xcode: Delete line hot-key</a></p> <p><a href="https://stackoverflow.com/questions/551383/xcode-duplicate-delete-line">Xcode duplicate/delete line</a></p> <p><a href="http://bigdiver.wordpress.com/2009/09/11/configure-homeend-key-bidings-on-mac-os-x/" rel="noreferrer">http://bigdiver.wordpress.com/2009/09/11/configure-homeend-key-bidings-on-mac-os-x/</a></p> <p><a href="http://www.betadesigns.co.uk/Blog/2010/02/03/custom-xcode-shortcuts/" rel="noreferrer">http://www.betadesigns.co.uk/Blog/2010/02/03/custom-xcode-shortcuts/</a></p> <p>All solutions include modifying one of these files:</p> <blockquote> <p>~/Library/Application Support/Xcode/Key Bindings/*.pbxkeys<br> ~/Library/KeyBindings/DefaultKeyBinding.dict<br> ~/Library/KeyBindings/PBKeyBinding.dict</p> </blockquote> <p>A good resource for the existing shortcuts in <code>Xcode 4</code> is <a href="http://cocoasamurai.blogspot.com/2011/03/xcode-4-keyboard-shortcuts-now.html" rel="noreferrer">http://cocoasamurai.blogspot.com/2011/03/xcode-4-keyboard-shortcuts-now.html</a> . There are many listed regarding deletion, but none for "delete line".</p> <p>BUT, these solutions do <strong>NOT</strong> work since <code>Xcode 4</code>. </p> <p><strong>Update</strong>: Issue is still the same as of <code>Xcode 5.1.1</code></p> <p><strong>Update</strong>: Issue is still the same as of <code>Xcode 6.1 GM Seed 2</code></p> <p><strong>Update</strong>: Still applies to Xcode Version 7.3 (7D175) as of 26th April 2016</p> <p><strong>Update</strong>: Six years later Xcode 8.3 has a built-in solution. See answer below.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload