tprouvot / Salesforce-Inspector-reloaded

Chrome extension to add a metadata layout on top of the standard Salesforce UI to improve the productivity and joy of Salesforce configuration, development, and integration.
https://chrome.google.com/webstore/detail/salesforce-inspector-relo/hpijlohoihegkfehhibggnkbjhoemldh
MIT License
215 stars 66 forks source link

Request for Enhancement: Formatting and Commenting Features for SOQL Queries #289

Closed santaji1986 closed 7 months ago

santaji1986 commented 9 months ago

I am encountering challenges when working with lengthy SOQL queries that involve multiple select fields and subqueries. These queries are often copied from batch jobs or generated for analyzing various issues.

It would be highly beneficial if the Salesforce-Inspector-reloaded could support the formatting of SOQL queries, allowing for proper indentation and the ability to include comments. For example:

SELECT column1, column2
FROM table1
WHERE condition1
    AND condition2
    OR condition3
// This is a comment using double slashes

Enabling comments using any of the common styles such as //, /**/, --, or ;; would enhance the experience, especially when dealing with long nested queries for data analysis.

dufoli commented 7 months ago

duplicate of #216 and #359

tprouvot commented 7 months ago

@santaji1986 I'll close this and the follow up will be done in the #359