Speaker: Michelle Petersen
See how dynamic help can provide help while you code.


View video

Welcome to Aptana. My name is Michelle, and I'm going to be demonstrating Aptana's Dynamic Help features.

To start, I'm going to declare a simple variable in a JavaScript file. I'm going to give a value for this variable by declaring a method on the prototype of a string. As I begin to type, you can see Code Assist here is popping up and giving me options of things that I can select.

After I type the period after prototype, I get a list of the possible methods that I can call on a string object. I'm going to call "split." Now, when the word "split" is selected, I get a tool tip, giving me a short summary of what I can do with the split method, and it tells me that I can split a string object into an array string by separating the string into substrings. Okay, let's use that.

When I type the parenthesis after the word "split," I get Argument Assist. Argument Assist tells me what arguments a method takes. In the case of split, it takes a separator and a limit. Say that we are splitting on a space here. Now, let's say that I want to know more information about the split method. With my cursor, I can hover over the word "split," and I get a longer summary in a tooltip.

In addition to just getting a one-line description, I also get information about using split. It's actually a pretty lengthy example down at the bottom. Now, say that I want to see all of the information that we have on the split method. I can click on the word "split" and press the F1 key, and that'll bring up Dynamic Help on split. You can see this gives me the full information about using split; it gives me the long example that we saw at the bottom of the tooltip.

Now, if I scroll down to the bottom here, it shows me a number of related help topics. The topic that I'm interested in is in our JavaScript Core reference for the string object. So I'm going to click that, and it opens up the help topic in a window. Now, I'm going to go ahead and maximize this window, and I'm going to go straight to our split method. I click the link; it brings up all of the information on the split method that you can call on the string object. It includes the full example, several examples, and it just includes a lot of really helpful information, including availability and browser support.

We hope that Aptana's Dynamic Help feature will make your coding go much more smoothly. We hope you enjoy using Aptana.

[End of Video]