How to quickly access documentation in Xcode 4.5.1? - iphone

How can I quickly access the documentation for a symbol, method, enum, etc. in Xcode 4.5?
alt + click on symbol shows a quick-info. Apple removed the dictionary icon which opened the documentation. I tried all other possible shortcuts of the cmd / alt / shift / click mumbo jumbo dance and none of them open the documentation browser.
I suppose there is a hidden trick to quickly open it anyways?
Edit: Figured out this new quick-info box has a link to the documentation.

⌘ Command + Double-Click on a symbol: Jump to Definition of a symbol.
⌥ Option + Double-Click on a symbol: Find Text in Documentation of a symbol. (Only works if you have they symbol's Doc Set installed.)
You should check This URL to know more about short cuts

Alt + double click any symbol to open the documentation.

You said in your question "quickly", quite frankly xcode sucks when it comes to reading docs quickly
I suggest you install the free Dash from the app store - which is a documentation viewer that is considerably quicker than xcode
Then install this plugin for Xcode
https://github.com/omz/Dash-Plugin-for-Xcode
Now doing "alt + click" on a symbol opens up Dash to the correct docs in a flash

Related

Is there any possibility to show the source code of flutter objects?

I do have a question. I´m programming and I wonder, if there is any possibility to show the standart setting of widgets (Container etc.) or other things.
I looking forward to hear from one of you. :)
If you want to find out the source code of an object, then
Ctrl + (click on the object)
Use ctrl + space for more info
To see the source code in flutter Ctrl and click on the object in windows and if you are on Mac then click Command Button and then click on the object and it should show you the source code for the object

Method List in Visual Studio Code

I've recently started using the Visual Studio Code editor. I'm really loving it, but there's one critical feature (for me) that I haven't been able to find. Is there a method list, similar to the Navigator in NetBeans or Member dropdown in Visual Studio?
Yes, there is the workbench.action.gotoSymbol command. On Windows and Linux it's set to CTRL+Shift+O by default, on Mac it's Cmd+Shift+O.
If this command isn't available for the file types you are working with then you should take a look at the VSCode extensions. Not all languages support this feature.
Update: As stated in the comments by #jeff-xiao this extension is Deprecated and it's now a built in feature of Visual Studio code. It should be available at the bottom of file explorer as "Outline" view.
Previous text:
There is now an Extension that supports this. Code Outline creates a panel in the "Explorer" section and for JavaScript, will list variables and functions in a file. I've been using this for a while now and it scratches the itch I had. Other commenters have mentioned it supports Python and PHP well.
It still seems to be in development but I haven't had any issues. Development version available on GitHub. If you're the author reading this - thanks!
This is how it looks:
If Code Outline is not visible, you can show it by:
Invoke Code's Go to symbol command:
macOS: cmd+shift+o (the letter o, not zero)
Windows/Linux: ctrl+shift+o
Typing a colon (:) after invoking Go to symbol will group symbols by type (classes, interfaces, methods, properties, variables). Then just scroll to the methods section.
In 2020 version of VSCode
Cmd+P
# - Find symbol across files
# - Find symbol within file
#: - Group symbols within a file
In VSCode 1.24 you can do that.
Right click on EXPLORER on the side bar and checked Outline.
There is a new release that can do that!
Check here the latest release notes regarding code outline
UPDATE: The extension features are now built-in and the extension itself is now deprecated
I have found this extention: Code Outline.
This is how it looks like:
I believe that is what you have been looking for.
There's no such feature today,
the CTRL+SHIFT+O == CTRL+P # doesn't work for all languages.
As a last resort you can use the search panel - although it is not so fast an easy to use as you'd like - you can enter this regex in the search panel to find all functions:
function\s([_A-Za-z0-9]+)\s*\(
For PHP users :)
Make sure you have 'PHP Symbol' plugin then you can get all methods and class in 'OUTLINE' Sidebar's Bottom.
Press ⌘ command + ⇧ shift + O in "macOS" or Ctrl + Shift + O while using "Windows"
OUTLINE:
#Symbol:
For python in Explorer View, click on OUTLINE as below:
Visual Studio Code market place has a very nice extension named Go To Method for navigating only methods in a code file.
Hit Ctrl+Shift+P and type the install extensions and press enter
Now type Add to method in search box of extensions market place and press enter.
Click install to install the extension.
Last step is to bind a keyboard shortcut to the command workbench.action.gotoMethod to make it a real productivity thing for a developer.
Watch this link: https://code.visualstudio.com/updates/v1_40#_type-filters-for-outline-and-breadcrumbs
Explorer -> OUTLINE, you can choose what you want to show (only methods and functions in your case) and the result is similar to Netbeans:
Open symbol by name :
CTRL+T
might be what you are looking for. Works perfectly with my TypeScript project.
It is an extra part to the answer to this question here but I thought it might be useful. As many people mentioned, Visual Studio Code has the OUTLINE part which provides the ability to browse to different function and show them on the side.
I also wanted to add that if you check the follow cursor mark, it highlights that function name in the OUTLINE view, which is very helpful in browsing and seeing which function you are in.
ctrl+shift+o // This should work for javascript files by default
For PHP install the extension PHP SYMBOLS
FOR PYTHON install the extension PYTHON
On Reload, this will work fine
in-built code OUTLINE available now with VS code
There is a plugin called show functions which lists all the function definitions in a file. It also allows you to sort the function so can search them easily.
CTRL+F12 (CMD+F12 for Mac) - opens for me all methods and members in PHP class.
For find method in all files you can press CTRL + P and then start search with #
example : #signin
Take a look at Show Functions plugin.
It can list functions, symbols, bookmarks by configurable regular expressions. Regular expressions are a real saver, expecially when you're not using a mainstream language and when CodeOutline doesn't do the job.
It's ugly to see a split window with these functions (CodeOutline seems to be better integrated) but at least there's something to use
If you are using typescript you can use this extension "Code navigator for typescript".
I have been trying it and found it useful to list my typescript class methods.

Eclipse - Ctrl Contrib (Bottom)

For some reason I can't enter parentheses in Eclipse. SHIFT + 8 doesn't work. I have to press CTRL + SHIFT + 8 in order to get an opening parentheses (likewise for ")").
I believe the reason for this is Ctrl "Contrib (Button)" which is some sort of status message at the lower right corner. I'm not sure if it's always been there, but probably not.
This is the only similar problem I found in the net, but the solution doesn't work for me, because such a path (Help -> Software Updates -> Manage Configuration) doesn't exist in my version of Eclipse. Help -> Search didn't help either.
How do I get rid of it? If it's not the source of my problem, what is? Going with CTRL + SHIFT + 8/9 to enter parentheses is really annoying and its not something I'd like to get used to.
The reason for these weired short cuts came up with eclipse sdk. If you downloaded and install the Eclipse SDK Tests you will find some weired settings. Like a blue texftfield in bottom right corner with "Ctrl Contributor" in it and also these short cuts.
To uninstall only these packages go to Window -> Installation Details -> Installed Software (tab) and searching for Test. You should find Eclipse SDK Tests and uninstall it. It just adds some non-sense features to your IDE to test if everything works.
Hope it helped and sorry for my english!
Found this, which solved my problem.
Went to Window -> Preferences -> General -> Keys, and looked for key combinations that used SHIFT + 8. There were two such options:
- Import
- Add to Working Set
I removed the hotkeys from them and restarted Eclipse. It worked for me.

IOS Dev Library offline on you mac

I need a offline version of http://developer.apple.com/library/ios/navigation/
Does something like this exist? thank you
You've already got an offline version of the Doc, if you have Xcode installed in your system.
In Xcode, goto Help --> Developer Documentation. Shortcut: Option + Command + ?. This will show you the documentation page loaded in Xcode itself. Select the Home button at the top of the toolbar. It will show a drop down list of reference libraries available. Select iOS library from the menu. It will show you the page you want.
In Xcode, Option + Double-Click on a symbol: Opens the doc for the selected symbol in a small window. Clicking on the book-like-button, the second button from the top-right corner of the window opens the reference page of the symbol. That button is enabled only if the documentation available for the symbol.
A more up to date question and answer: XCode Documentation - Offline Reading
The shotcuts Simon describes still work, but the Help menu has changed.

What are the must know shortcuts in Xcode for faster application development?

What are the must know shortcuts in Xcode for faster application development?
As a special interest, the Mac shortcut I want to know is the one to open application menus (File, Edit, View, Project, Build etc.,). In Windows, if we type Alt + F, the File menu will drop down, and we can navigate through the sub-menus using the arrow keys or typing the letters that are underlined in the menus. How can we do something like that in Mac?
Thanks..
For debugging:
CMD+SHIFT+I (step into)
CMD+SHIFT+O (step)
Building & Running:
CMD+B (build project)
OPT+CMD+ENTER (debug project)
This is the PDF for all the shortcuts of Xcode
All Xcode Shorcuts
I hope it helps.
Alt + Cmd + Up to toggle between .h and .m files of a class
Cmd + ' to move to next error or warning
Cmd + Shift + ' to move to previous error or warning
Column Selection: Holding down the option key while dragging allows you to perform a column based selection of text. Might be useful in limited circumstances.
Control-. to select the next autocompletion, control-/ to select the next placeholder (add shift for previous), control-escape to show autocompletion list.
As a response to your request, if you have full keyboard access turned on, control-fn-F2 will select the menu bar. Then use the arrows to select an item, and space to choose it.
These shortcuts are for Xcode 3.2.x (they may vary from Xcode 3.1.x and other versions):
Command-double click on symbol/method name in source code editor > Open the .h file for symbol
Option-double click on symbol/method name in source code editor > Open the documentation for symbol
Command-Option-Shift-F > Find Selected Text in Project (custom shortcut)
I have the following one setup in User Scripts under Code to insert a standard logging call:
The inserted text is:
NSLog(#"[%# %#]", NSStringFromClass([self class]), NSStringFromSelector(_cmd));
Shift-Command-D (Xcode 3.2) / Shift-Command-O (Xcode 4): Open quickly. Great way to get to the file you want.
"Alt + Cmd + Up to toggle between .h and .m files of a class"
This seems to have been disabled in Xcode 4. I've not been able to find a way to set it in Bindings, either. Any hints?
Update: Just found it. It has been changed to "Ctrl + Cmd + Up". It can also be executed with a three finger swipe up or down.
The command, by the way, is called "Jump to Next Counterpart". I knew that.... :-/
Sometimes it takes a Ph.D. in linguistics to figure computer terminology out. And I've been doing this since the early 80s.
Click on any method name in the Xcode.
Then use ALT + CMD + / to insert comments describing the input and return parameters.
This will encourage you to write descriptive comments explaining what is the method supposed to do, thus leading to a more maintainable code.
Use CMD + SHIFT + O to open the Open Quickly Dialog. While you type classes, methods and files will appear matching your entered description. Pressing enter will go to said method, class or file. This greatly improved productivity for me.