Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
The Outline view is something you'll constantly reference as you go through files. Unfortunately, it can be a bit unwieldy to see every tag on a page in one big outline. You can change how much the Outline view displays in the Outline preferences. So, to show you what I mean, let's first open up a rather long file. Under the cfcs directory here, let's open up the ARTService. This file isn't terribly long. It's only about 118 lines, but if you look at the Outline, almost every single one of those 118 lines is reflected in the Outline, including comments and returns and basically a bunch of stuff that you really don't need to see in order to be able to navigate this file.
So, let's go to our preferences and change how much the Outline shows us. If I click on the Outline node here in the Preferences, by default, it's going to show all tags. However, I can choose Show selected tags and then I can add and remove what I want to show in the Outline. Let's click Add and then I can just type the name of the CFML tag. Let's say I want to see cfif tags. Now I can enter in a comma separated list, if I want to add more than one at a time.
Click OK. Let's click Apply and you can see that my Outline view immediately changed. Now I'm only seeing my cffunction tags, because apparently there are no cfif tags in this file. In my opinion, that makes the Outline view a whole lot easier to deal with. Now to wrap up our Editor preferences, let's take a look at the Syntax Checking options. This page is really easy to deal with. We only have two options: whether we want to enable syntax checking and whether we want to display those syntax errors only on a file save.
So, the syntax checking looks a lot like spellchecking in Microsoft Word or other Office applications. Let's click OK and take a look at what that looks like. Let's open up our FileTest.cfm file again and let's cause a problem. Let's enter in a cffunction tag and I'm missing all the arguments on my cffunction tag. So, you'll notice that has these dots underneath it. It also has an X over here in the gutter next to my line numbers. If I hold my mouse over that X, we can see that an attribute name is required.
So, let's go back to my cffunction tag. I'll put name="myFunction". Now the X has gone away. If I go back to my Preferences and select to display syntax errors only on file save, I'll click OK. I'm going to remove my name argument. Now when I save my file, it's showing me the error is there again. So, I like this to be on all the time, so I can see problems as I go through my code. So, I'm going to uncheck Display Syntax Errors Only on File Save.
We'll click Apply and OK and we're back to the way I like it. So, you now know everything there is to know about customizing your editor in CFBuilder. As I've said in previous videos, take the time to get everything just the way you want it. Trust me, you won't regret it.
Get unlimited access to all courses for just $25/month.Become a member
82 Video lessons · 98382 Viewers
61 Video lessons · 85669 Viewers
71 Video lessons · 69603 Viewers
56 Video lessons · 101928 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
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.
Your file was successfully uploaded.