How can we help you today? How can we help you today?

Format options suggestions

Hello friends,
I'd like to have my case commands formated like this:
SELECT
  CASE 
    WHEN 1 = 1 THEN 'A'
    WHEN 1 = 2 THEN 'B'
    ELSE 'C'
  END

So, i think the better way to get this, and a lot of another formating options is to creating word lists like these:
- List of works to break the line before
- List of works to break the line after
- List of works to indent the block before
- List of works to indent the block after
- List of works to unindent the block before
- List of works to unindent the block after
.......
cussuol
0

Comments

1 comment

  • jermy
    I like your idea, but it can't related to a list of words, without their context.
    What I mean is that for example if you define "CASE" and "WHEN" in the
    "List of works to indent the block before"
    and "END" in the
    "List of works to unindent the block before"
    and all above + "ELSE" in the
    "List of works to break the line before"
    you will get the following code:
    SELECT
    	CASE
    		WHEN 1 = 1 THEN 'A'
    			WHEN 1 = 2 THEN 'B'
    			ELSE 'C'
    		END
    
    Because the 2nd "WHEN" don't need to be indented only the first.
    So maybe it should have kind of templates for block statements with macro for indent one tab/indent to list/unindent/break line/etc. like snippets.

    BTW, you wrote
    "List of works..."
    instead of
    "List of words..."
    THNX
    Jermy
    jermy
    0

Add comment

Please sign in to leave a comment.