This question already has answers here:
Xcode spell checking
(8 answers)
Closed 7 years ago.
Is there a way to enable spell checking in xcode (maybe and add-on) that does spell checking only inside comments and not in code? (like vim/emacs spell checker).
I have tried what is described in this answer but it seems check the entire document since it complains about some variable names and macros (which I obviously don't want to spell check).
Xcode 4 also includes a new Fix-It feature, which is basically a spell-checker for code. It highlights your mistakes, and with the press of the "Fix" button, the problem is solved.
It just shows you a red circle on the line number that you have to click to get the fix it suggestions. You can use a keyboard shortcut to do the fixing at least. Here is the "Fix all in scope" key bind.
Fix Next Issue:
control + Command + '
Fix Previous Issue:
control + Command + "
Fix All In Scope:
control + Command + F
The closest thing I've been seen that shows errors as you type is to switch to issue navigator and leave that on.
Here is a guide on the issue navigator. http://developer.apple.com/library/ios/#recipes/xcode_help-issue_navigator/articles/viewing_issues_in_the_issue_navigator.html Hope this helped.
Related
After upgrading to Xcode 7, to support iOS 9, i have hundreds of fix-it errors and warnings. Is there a one push button to make Xcode run them all rather then individual going through them one by one?
There is actually a solution for this in Xcode 7.21's Editor menu.
This is the shortcut:
⌃+⌥+⌘+f
which is
ctrl+alt+cmd+f
1 This is the version I can confirm, might work in earlier versions as well.
XCode's "fix-it" isn't always reliable enough to make the changes that the code needs to run properly. Even if there was such a button, I wouldn't advise using it. The only thing I can think of to make it quicker to go through is to use: Navigate > Jump to Next Issue which would mean you wouldn't have to comb through the code to find all of the errors, Xcode would take you straight to them.
Fix All Issues button in Xcode 10.3
control - option - command - f
⌃ ⌥ ⌘ f
This question already has answers here:
Xcode: show documentation for my custom classes
(5 answers)
Closed 10 years ago.
I've read What are documentation comments in Xcode? but I tried all these techniques and still can't get XCode 4.6 to show my comments during an option-hover (i.e. hold down alt, move mouse over method name, cursor changes to a ?, click). It says where it's declared, but nothing else. Am I doing something wrong or does XCode just not support doc comments?
Xcode's option-click quick-help feature reads detailed information from installed documentation sets.
To get similar functionality, you would have to create your own documentation set and add it to Xcode under Preferences > Downloads > Documentation.
This question already has answers here:
Code Formatting In Xcode
(11 answers)
Closed 7 years ago.
I wonder how can I format my code to align it neatly? Does it have a feature similar to Eclipse's ctrlshiftf?
Select first the text you want to format and then press Ctrl+I.
Use Cmd+A first if you wish to format all text in the selected file.
Note: this procedure only re-indents the lines, it does not do any advanced formatting.
In XCode 12 beta:
The new key binding to re-indent is control+I.
Key combination to format all text on open file:
Cmd ⌘ A + Ctrl I
Select the block of code that you want indented.
Right-click (or, on Mac, Ctrl-click).
Structure → Re-indent
I would suggest taking a look JetBrains AppCode IDE. It has a Reformat Code command. I have come from a C# background and used Visual Studio with Jetbrains Resharper plugin, so learning AppCode has been a pleasure because many of the features in Resharper also exist in AppCode!
Theres too many features to list here but could well be worth checking out
http://www.jetbrains.com/objc/features/index.html
http://www.jetbrains.com/objc/
I just upgraded to Xcode 4, and I was reading a Xcode 4 Transition Guide when I found information about a new feature called Fix-it, which show the erros as I type. I am using C++ (.mm files) and set the compiler to LLVM GCC-4.2, but it is not showing the errors as I type. How can I enable this feature?
They don't show as you type like they say, or at least I haven't been able to get it to show the errors. It just shows you a red circle on the line number that you have to click to get the fix it suggestions. It's pretty lame, but you can use a keyboard shortcut to do the fixing at least. Thankfully they included a "Fix all in scope" key bind too.
Fix Next Issue:
control + Command + '
Fix Previous Issue:
control + Command + "
Fix All In Scope:
control + Command + F
Just tried looking again, and the closest thing I've been able to see about possibly showing errors as you type is to switch to issue navigator and leave that on. Your errors as you type will show up in there, but it is very discrete while in the code view. Then you can just click the issue in the navigator and you'll get your suggestions box, which is nice.
This question already has answers here:
After "Go to Definition", is there a command to return to where you came from?
(9 answers)
Closed 9 years ago.
In Visual Studio when going to definition by pressing F12, it takes you to definition. Is there any way to go back to where you came from?
This is specially annoying when you have definition within same file. If it's in another file then it's ok Ctrl+Tab take you back to previous window. But when it's in same file then have to find where you came from and go there.
Try the key combination: Ctrl + -.
As others mention, use Ctrl + -. This is the View-NavigateBackward shortcut in Visual Studio's default key mapping scheme, and can be mapped to any key combination you like from Tools->Options->Keyboard. I like Alt+← myself, to match typical web browser use.
Note that, for most five-button mice, the navigate-left button will also do this.
Ctrl + -
Ctrl -> '+' -> '-'
I searched for a long time till i found that one, and I can't stop using it since!! :)