ThatJeffSmith

Tag: formatter

SQL Developer version 4.2 Early Adopter 2 Now Available

Tons of bugs fixes based on your feedback, especially with the formatter. A few more changes with the formatter: we added more preferences for more flexibility we let you submit code to ‘shape’ the formatting preferences automatically we exposed the brains of the formatter so you can do pretty much whatever you want An example […]

Similar Posts by Subject Areas: , , ,

Demo: AutoTrace – Generate Hints and Compare Different Execution Plans & Stats

For some reason I procrastinated setting up my video software on my new work machine. Big mistake. I put together this animated GIF to show some new things in version 4.2: Updated formatter – better support for ANSI joins Opening objects referenced in your execution plans Inserting Hints Not new but underutilized: how to compare […]

Similar Posts by Subject Areas: , , , , ,

Formatter Improvements in v4.2

The old formatter, the code that’s used to format your code from v1 to version 4.1 was based on some pattern matching code and expressions. It was very limited, and didn’t like a lot of syntax and coding styles common in Oracle code. It also wasn’t very flexible. So we built a new engine. One […]

Similar Posts by Subject Areas: , , ,

TABs in Your Code?

Not to start a religious war, but white space in your code can cause havoc when you’re doing code compares and versioning. Some folks like tabs, others prefer to control how their code looks regardless of the editor’s tab display options. From what I can tell, SQL Developer’s code editors won’t even let you insert […]

Similar Posts by Subject Areas: , , , ,

Case Closed: lower, InitCAP, UPPER, And Stuff

Best practice for code readability dictates that your keywords should always be in: insert your preferred style here __________. Here’s a Twitter poll I’m running if you want to personally weigh in: Do you agree? Best coding practices dictate uppercase identifiers? https://t.co/WhOZvL2Bmv — Jeff Smith ☜ (@thatjeffsmith) March 16, 2016 So even if we can’t […]

Similar Posts by Subject Areas: , , ,

Formatting Code in SQLcl

Ever get a SQL statement from someone desperate for help? There’s 2 things these people do that drive me nuts: they send a SCREENSHOT of their code they send the Query as a single line of text If I’m in the command line, it’s real easy to fix the 2nd problem. Just use the FORMAT […]

Similar Posts by Subject Areas: ,

SQL Developer Formatter: Left Aligning Columns in a SELECT

Question: I can’t figure out how to make a column list align like this (underscore = space): _SELECT_column1 ______,_column2 ______,_column3 ______,_column4 ___FROM_table The closest result that the formatter produces is: _SELECT_column1, __column2, __column3, __column4 ___FROM table where all column names start at text position 3… My answer isn’t going to be perfect, but it’s going […]

Similar Posts by Subject Areas: , , ,

Preserving Line Breaks in Oracle SQL Developer 4

Ugly code, we all write it. I don’t mean bad code either, just hard to read code. Developers who haven’t figured out how to use the TAB and ENTER keys – what’s up with that? — and why is Jeff talking to himself in his Seinfeld voice again? So one of the features in SQL […]

Related Posts Plugin for WordPress, Blogger...

Similar Posts by Subject Areas: , , ,