Note that there are some explanatory texts on larger screens.

plurals
  1. POXcode 4.2 codesense - how do you narrow down the suggested completion list?
    text
    copied!<p>Is there any way in Xcode to narrow down the completion list displayed by CodeSense as you type when you have several methods that all start with same prefix?</p> <p>For example: Lets assume you have subclassed UITableViewController and wish to implement the method </p> <pre><code>-tableView:numberOfRowsInSection: </code></pre> <p>So, you start to type:</p> <pre><code>-tableView </code></pre> <p>and you get the following CodeSense completion list</p> <p><img src="https://i.stack.imgur.com/4eved.jpg" alt="Screenshot of CodeSense completion popup for -tableView"></p> <p>That's great, but there are <em>loads</em> of available suggestions and scrolling through this list seems to defeat the point of CodeSense.</p> <p>How do you narrow this list down further?</p> <p>Selecting the second option in the popup list shows the following:</p> <p><img src="https://i.stack.imgur.com/sI5h7.jpg" alt="Screenshot of CodeSense completion popup when second option selected"></p> <p>To me this implies that if you type:</p> <pre><code>-tableView:n </code></pre> <p>you should get a completion list popup with only the methods that have that prefix. In fact all I get is 'No Completions'.</p> <p>If instead I try to start typing the method signature verbatim:</p> <pre><code>-tableView:( </code></pre> <p>I then get an irrelevant completion list (it just lists types).</p> <p>The above is just an example, I seem to come across this a lot when implementing interface methods.</p> <p>I'm relatively new to Xcode (coming from a Visual Studio background), but I can't seem to find any information about this aspect of CodeSense.</p> <p>Does Codesense support this sort of filtering, or am I just not using it correctly? </p> <p>Thanks.</p>
 

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