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 ArticlePreserving 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 ArticleSQL 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 ArticleFormatting 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 ArticleFormatting 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 ArticleCase 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 ArticleWhat 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 ArticleTABs 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 ArticleFormatter 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 ArticleDemo: 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 ArticleSQL 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 ArticleSQLcl – 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 ArticleAnd…? 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 ArticleComing 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 Article18.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 ArticleCan 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 ArticleVersion 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 ArticleTrying 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 ArticleOracle SQLDev VS Code Formatter & Task Management
Our extension’s latest update (24.3) was released yesterday! If your VS Code hasn’t already updated the SQL Developer extension, now’s the time The BIG feature for 24.3 was our PL/SQL Debugger. Read...
View Article