Add the ability to specify a named formatting style using a comment block.
Add the ability to specify a named formatting style using a comment block.
Add functionality to specify, in a comment block, what formatting style should be used when formatting the current file. It could be a simple addition to the existing turn-on/off formatting comment.
Perhaps something like this:
--SQL Prompt Formatting On  - Style = "My Style"
The above would turn on formatting and specify what style to use.
This functionality would be helpful in many ways.
- It is already convenient to have multiple formatting rules, this would keep the user from having to remember what rules apply to what file 
- When formatting a group of files from the command line, the files themselves could specify their own formatting rules, in case one needs different formatting for different files. 
- It would also be convenient to be able to have different blocks of code in the same file obey different styles (condensed for one section and a wide,long-line one) for different sections of code. This has to be done using manual formatting using the existing on/off comments. 
 Craig Anderson
    
 shared this idea
Craig Anderson
    
 shared this idea
      
    