Code formating
See original GitHub issueThanks for your work. I use it everyday. I have a request about code formatting. Since using sublime I always have trouble with automatic code formating
-
<cfelse><cfelseif>
, which have an extra identation after -
tags without closing tag like
<cfset>
which have an extra identation after, except if it is written like so<cfset />
-
Coldfusion tags into
<javascript></javascript>
HTML tag have no proper code color and indentation
I read Sublime documentation and code to find solution, but I am lost and found no solution so far.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Prettier · Opinionated Code Formatter
Opinionated Code Formatter. ... What is Prettier? An opinionated code formatter; Supports many languages; Integrates with most editors; Has few options ...
Read more >Code Formatting and Code Comments - A Beginner's Guide to ...
Code formatting and comments are useful tools to make any markup easier to understand, maintain, and troubleshoot. Above you have learned basic ...
Read more >What does it mean to format your code? - Quora
Format your code means you are making your code readable for your fellow team members (readers). The reader should be able to understand...
Read more >Code Style and Formatting - The Turing Way
A coding style is a set of conventions on how to format code. For instance, what do you call your variables? Do you...
Read more >Clean Code: Formatting (Source code structure) | Nerd For Tech
Why does code formatting matter? Code formatting is about communication, and communication is the first order of business for the competent ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah, good catch regarding the HTML tags. With the change I suggested above, for HTML in CFML documents, the rules in the
cfml-indent.tmPreferences
file take precedence. So I might need to add the HTML rules to it. (Similar to what you ended up doing above.)@eric00000007: I have put up new settings that include the HTML indent settings as well. Thanks for your help. You may still want to override the default file, since I did not include
cfmodule
. (I was torn about it but since it can be used with a closing tag, I did not want to prevent it from having a following indent.)