Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Navigating code and documents

From: ColdFusion Builder Essential Training

Video: Navigating code and documents

If your days end up anything like mine, by noon you have dozens of documents open, and for the life of you, you can't remember exactly what you were working on or where that last file was that you needed to change. One of the things I love most about CF Builder is just how fast it allows you to get around your code and find what you are looking for. There are a ton of keyboard shortcuts and toolbar buttons that help you find what you want as fast as possible. To start with, we will take a look at navigating between documents. Right now, I have my ColdFusion Builder start page open and four documents, which has just enough room to show all of the tabs along the top here.

Navigating code and documents

If your days end up anything like mine, by noon you have dozens of documents open, and for the life of you, you can't remember exactly what you were working on or where that last file was that you needed to change. One of the things I love most about CF Builder is just how fast it allows you to get around your code and find what you are looking for. There are a ton of keyboard shortcuts and toolbar buttons that help you find what you want as fast as possible. To start with, we will take a look at navigating between documents. Right now, I have my ColdFusion Builder start page open and four documents, which has just enough room to show all of the tabs along the top here.

But if I go over to my cfcs directory and open up a couple of components, I no longer have room to display every file that I am working on. So, over here to the side, you can see there is a small double arrow with a number that shows how many documents are open, besides the ones that are currently showing in the tabs. So, if we click this little button, we can see at the top, I have four bolded documents that are not viewable in the tabs along the top, and then at the bottom I have everything that I can currently see in the tabs.

If I start to type, at the top, I can filter down that list to find exactly what I want. Use my arrow keys to select the document and press Enter, and then that document comes into focus. I can get to this same list by pressing Command+E or Ctrl+E on Windows to bring up the file list. I will type in login, choose login.cfm, and press Enter, and then that tab comes into focus. Now, you will notice that CF Builder will continually redraw the tabs to fit as many as it can, and now my file list shows that there are five additional documents open.

So, just expect your tabs to jump around a little bit and for this number to change as you move through your documents. Now, what about navigating around a single document? Let's go to the ARTDAO. And this file is fairly long. We have got about 140 lines. If I move over to the Outline view, I can see the structure of my ARTDAO.cfc. I can also go up here to the Filter and filter down my list to find exactly the method that I am looking for.

So, for example, I type cre. I can scroll down and find my Create method and it gets highlighted over in the code editor, but there is also a way to do this directly inside of the code editor, without having to reach for my mouse. If I press Command+O, it brings up the same Outline view. I can start typing a method that I want to find, use my arrow keys, select it, and press Enter, and it will go directly to that method. Also, in the little Outline pop-up, I can click this menu and choose whether or not I want it to remember the size and location.

So, for example, I can make the window larger. I can also choose whether items should be sorted alphabetically or in the order they appear in my code. I can collapse and expand everything directly from here, and I can hide private methods that won't be available to my CFM files. To get rid of the Outline view, I can just press Esc, and I am back to my file. Another way I tend to move quickly through my code is by searching for specific variables that I am using. So, as an example, here in my Create method, I have an argument called ARTID.

If I want to know everywhere that the ARTID method is used, I could open the Find dialog, but it's easier to use the Find Selection keyboard shortcut, which is Command+K or Ctrl+K. If I hold down Command+K, it will cycle through all of the instances of the word ARTID. So, I am just pressing Command+K and it's jumping through every match for the current selection. If I hold down Command+Shift+K, it will go backwards through the document. So, I can move back and forth through my entire document and find everywhere that I am using a particular string of text.

Now, there are also times when I need to jump to a specific line in my code. To do that, I can press Command+L or Ctrl+L, and that brings up the Go to Line dialog. Then I can just type in Line 50, press Enter, and it will jump directly to that line. So, those are the ways to navigate to a specific location if you actually know where you want to go. But oftentimes, if I am five or six files down into solving a problem, sometimes I forget where I have been. Across the top of CF Builder, in the toolbar, we have Back and Forward buttons, just like you have in a Web browser.

You can click the Back and Forward buttons to actually move through your code, to go back to where you have been. I can see I have been in six different locations in the ARTDAO. Before that I was in login.cfm, and before that, I was in ARTGateway. I can click the Back buttons and cycle back through each of those positions, and then I can click Forward to go back through that same list. This far left icon is the last Edit location, and this goes back to the last line where I actually changed a line of code.

I didn't just stop and select something, but actually edited part of the file. So, if I click that link, it takes me back to the login.cfm, which I was actually editing in the previous video. Those are the quickest ways to navigate around your documents inside of CFBuilder. To find additional keyboard shortcuts, spend some time in the General Keys preferences.

Show transcript

This video is part of

Image for ColdFusion Builder Essential Training
ColdFusion Builder Essential Training

40 video lessons · 3885 viewers

Daniel Short
Author

 
Expand all | Collapse all
  1. 7m 48s
    1. Welcome
      59s
    2. Installing ColdFusion Builder
      2m 20s
    3. Installing ColdFusion Builder as a plug-in
      3m 18s
    4. Using the exercise files
      1m 11s
  2. 17m 42s
    1. Workspace overview
      2m 25s
    2. Organizing your workspace
      6m 19s
    3. Adding and selecting workspaces
      2m 53s
    4. Installing and managing plug-ins
      6m 5s
  3. 12m 12s
    1. Creating projects
      2m 11s
    2. Importing projects
      2m 48s
    3. Creating project working sets
      2m 23s
    4. Managing projects
      2m 22s
    5. Linking folders
      2m 28s
  4. 23m 2s
    1. Configuring and managing ColdFusion servers
      6m 26s
    2. Using the Services Browser
      4m 15s
    3. Using RDS Dataview and Fileview
      4m 52s
    4. Using FTP
      7m 29s
  5. 18m 10s
    1. Creating editor profiles
      2m 6s
    2. Using Code Assist
      5m 43s
    3. Setting code coloring
      4m 5s
    4. Using shortcut keys
      3m 5s
    5. Working with outlines and syntax checking
      3m 11s
  6. 37m 40s
    1. Using code completion
      7m 25s
    2. Using snippets
      9m 23s
    3. Using SQL editing and the Query Viewer
      5m 55s
    4. Working with components
      7m 27s
    5. Working with variable mapping
      2m 14s
    6. Navigating code and documents
      5m 16s
  7. 13m 12s
    1. Getting set up
      3m 50s
    2. Using the ColdFusion debugger
      5m 37s
    3. Watching logs with Tailview
      3m 45s
  8. 13m 8s
    1. Installing extensions
      4m 5s
    2. Using the CFC Generator extension for ColdFusion 8
      4m 52s
    3. Using the CFC Generator extension for ColdFusion ORM
      4m 11s
  9. 34m 5s
    1. Building a simple contact form extension
      3m 42s
    2. Creating user interfaces
      8m 55s
    3. Packaging the extension
      3m 55s
    4. Building the handler
      8m 10s
    5. Using the Builder extension
      9m 23s
  10. 25s
    1. Goodbye
      25s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed ColdFusion Builder Essential Training.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.