tracker issue : CFB-4166570

select a category, or use search below
(searches all categories and all time range)
Title:

Extra indentation always uses tab character even when preferences are set to use spacing.

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Nat Dunn / Nat Dunn (Nat Dunn)

Created: 06/21/2016

Components: General - IDE

Versions: 3.0

Failure Type: Usability Issue

Found In Build/Fixed In Build: CFB2016_Update2 /

Priority/Frequency: Major / All users will encounter

Locale/System: English / Mac 10.7 64-bit

Vote Count: 1

Problem Description: When adding an indentation level, CFBuilder always adds a tab even when preferences are set to use spaces. You can press Backspace and then Tab to change it to spaces.

Steps to Reproduce:
# Set preferences to use 2 spaces for indentation.
# Type <cfoutput> and press Enter.
# Notice that a tab character is entered instead of spaces.
# Change the tab character to two spaces. You should be able to just backspace over it and then press tab to add spaces.
# Type <cfloop> and press Enter.
# Notice that the next line has two spaces for the original indent amount and a tab for the additional indentation.

Actual Result:
Inserts tabs when it shouldn't.

Expected Result:
Insert spaces when it should.

Any Workarounds:
Backspace over the tab and press tab key.

See an explanation with pictures at https://www.webucator.com/blog/2016/06/coldfusion-builder-indentation-woes/

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4166570

External Customer Info:
External Company:  
External Customer Name: Nat Dunn
External Customer Email:  
External Test Config: My Hardware and Environment details: Mac OS Capitan.

Attachments:

Comments:

I put Product Area as Tags, but really it's Editor. This happens with all types of files (CFC, CFM, XML, etc.)
Comment by External U.
26194 | June 21, 2016 11:05:04 AM GMT
This bugs the crap out of me. Please fix!
Vote by extuser
26199 | June 22, 2016 11:02:50 AM GMT
Thanks for pointing this out. Just checked-in with a fix. Also, the preferences, we take are for CFML editor and not for any other editor like XML, JS, HTML, etc. So, for rest of editors, it is expected to take indent text as tab character only. For CFML, it will now take indent text as set in preferences.
Comment by Nikhil D.
26195 | June 24, 2016 04:15:04 AM GMT
That's awesome! Will it also work with CFCs?
Comment by External U.
26196 | June 24, 2016 04:17:01 AM GMT
@Nat: Yes it will. As ".cfc" files are opened using same CFML editor, all preferences will also apply to ".cfc" files.
Comment by Nikhil D.
26197 | June 29, 2016 03:08:16 AM GMT
@NIKHIL, very cool. Any idea when it will be available as an update?
Comment by External U.
26198 | June 29, 2016 04:27:09 AM GMT