Quantcast
Channel: formatter | ThatJeffSmith
Browsing all 18 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Formatting Keywords to UPPERCASE In Oracle SQL Developer

I received this question from a customer today, and it took me more than a few minutes to remember where this preference was located in SQL Developer. This tells me that the topic is ripe for blogging...

View Article



Image may be NSFW.
Clik here to view.

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...

View Article

Image may be NSFW.
Clik here to view.

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...

View Article

Image may be NSFW.
Clik here to view.

Formatting your SQL Queries, Indented Predicates on New Lines

Someone asked in our forums how to format their code the way they want it. Specifically, they have code like so: SELECT t1.col1 , t1.col2 , t1.col3 , t1.col4 , t1.col5 , t1.otp , t2.fid , t2.pid FROM...

View Article

Image may be NSFW.
Clik here to view.

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...

View Article


Image may be NSFW.
Clik here to view.

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...

View Article

Image may be NSFW.
Clik here to view.

What The Format? Making Your Code Pretty in SQL Developer

This post is a tease. It’s also a request. Send me your ugly code. In version v4.2 of SQL Developer – to be released in calendar year 2016 – we’ll be offering a new formatter for your SQL and PL/SQL....

View Article

Image may be NSFW.
Clik here to view.

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...

View Article


Image may be NSFW.
Clik here to view.

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...

View Article


Image may be NSFW.
Clik here to view.

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...

View Article

Image may be NSFW.
Clik here to view.

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...

View Article

Image may be NSFW.
Clik here to view.

SQLcl – Setting Up the Formatter

Just because you’re in a command line interface doesn’t mean you’re stuck with ugly code! Wait, if it’s my code, you’re stuck with ugly code. But if it’s YOUR code, then you’re not stuck with poorly...

View Article

Image may be NSFW.
Clik here to view.

And…? Formatting in Version 4.2

“I do not want a line break after the and statement.” I’ve seen this come up a few times, so let’s answer that right now. SELECT 1 FROM dual WHERE 1=2 AND 2=3 AND 3=4 Default formatting changes that to...

View Article


Image may be NSFW.
Clik here to view.

Coming Soon: A More Forgiving Formatter

For 17.4, the formatter will attempt to format invalid SQL for you. If the parser runs into a problem recognizing your code, it will format it as much as it can. But that’s not all. It will ALSO go to...

View Article

Image may be NSFW.
Clik here to view.

18.1 – New Formatting Option, Right-Align Query Keywords

Due to popular demand, we’ve added this new preference to the formatter. With it turned on: Some folks hate this, like Connor. On SELECT B.DEPARTMENT_NAME, A.FIRST_NAME, A.LAST_NAME, A.SALARY FROM...

View Article


Image may be NSFW.
Clik here to view.

Can You Format My Code, This Way?

A follower reached out to me late yesterday with this request: From meh to wow – can we do it? And the answer is yes, we can pretty much get there. I’ve noticed a few things by looking at his...

View Article

Image may be NSFW.
Clik here to view.

Version 19.1 and Custom Highlighting: DBMS_OUTPUT

Question: Why is my DBMS_OUTPUT code highlighted like it’s a COMMENT now? Answer: Because someone requested this change. The idea: INSTRUMENTATION code can be a distraction when you’re looking to go...

View Article


Image may be NSFW.
Clik here to view.

Trying out Trivadis’ Code Formatting Rules, Thanks Philipp!

Teams and developers will frequently argue about code being ‘ugly’ or ‘hard to read.’ While we can say these are subjective points or opinions – at a certain point, ugly code is ugly code. I found this...

View Article
Browsing all 18 articles
Browse latest View live




Latest Images