In both Eclipse and IntelliJ, when you have a warning/error you could do Ctrl+1 in Eclipse or Alt+Enter in IntelliJ to popup a menu of suggested actions and quick fixes.
XCode appears to have a feature called "Fix-it": https://developer.apple.com/library/ios/recipes/xcode_help-source_editor/chapters/Fix-it.html
– Anderson GreenJul 04 '15 at 19:51