Comments (3)
Hi,
Thanks for the bug report, nice catch on the trailing comma issue - I don't know how that issue managed to remain undetected for more than 6 months!
Your sample does also illustrate some Comment Positioning bugs, for example "libraryprod.column5" should appear on its own line after the block comment, because in the original source there is a line break after the block comment before the SQL - in general, we try to respect user-supplied line breaks before and after comments.
You mention one other issue, that of alignment of content in lines in a block comment. I would not consider this a bug, but rather standard behaviour: The formatter never does anything to the contents of Comments. One example why it behaves this way can be demonstrated with the following sample:
SELECT Something
/*
That select was completely useless, in so many ways:
- It was too short
- There were problems with the identifiers:
- There was no table, view or other "FROM" object specified
- The "Something" name doesn't seem to reference anything
- It was just a sample
*/
Basically, whitespace in a comment can be meaningful - not everyone uses an asterisk-bounded style.
If you're saying you'd like to see an optional flag in the formatting options somewhere for automatically lining block comment content lines up with the SQL context, that's something I can definitely do!
I expect to have the trailing comma issue addressed this weekend, and if you're still interested in optional multiline comment content alignment that's probably something I can slip in too.
hth,
Tao
from poormanstsqlformatter.
Comment positioning issue and comma commenting issue corrected in v1.3.1; pending feedback on block comments.
from poormanstsqlformatter.
works now :-) thanks.
from poormanstsqlformatter.
Related Issues (20)
- Notepad++ shortcut to change keywords to uppercase
- Formatting uppercases the word 'definition' in select HOT 1
- poorsql.com SSMS / Visual Studio plugin link broken
- Visual Studio 2022 - Compatibility HOT 1
- "This Extension Is Already Installed To All Applicable Products" when installing on new version of SQL HOT 1
- mimifying code upper cases SQL keywords
- mimifying code deso not leave blanks in all the right places
- No PoorMansTSqlFormatter button in Notepad++ toolbar HOT 1
- How does Sublime Text use the PoorMansTSqlFormatter plug-in HOT 2
- Installation Error in SSMS v18.11.1 HOT 2
- Align data types in declare section
- SSMS 19 - Compatibility HOT 24
- DBeaver integration with PoorManSQL HOT 4
- Installation SSMS HOT 1
- How to prevent adding "GO" at end ?
- Syntax error on correct sql text with nested JOINs HOT 2
- Postgresql Json Column Add Spaces HOT 4
- Add format feature to not ident on extra conditions after first WHERE condition
- How to avoid line breaks on some statements such as declare variable list
- [noformat][/noformat] block adds a linefeed before [/noformat] everytime the document is formatted
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poormanstsqlformatter.