- changed status to duplicate
Allow code auto-format to line break at field in SOQL statement
Issue #558
duplicate
The current code auto-format tool is awesome, but does not correct one best practice issue regarding maximum column width of code. Issue is in SOQL statements, the field selection can get pretty huge, and hard to maintain.
Would love an option to line break after fields, so the auto format result looks like:
User[] singleLineSoqlQuery = [
SELECT AboutMe,
AccountId,
Address,
Alias,
AuthData__c,
BadgeText,
BannerPhotoUrl,
CallCenterId,
City,
CommunityNickname,
CompanyName,
ContactId,
Country,
CreatedById,
CreatedDate
FROM User
ORDER BY Username ASC
LIMIT 10
instead of
User[] singleLineSoqlQuery = [
SELECT AboutMe, AccountId, Address, Alias, AuthData__c, BadgeText, BannerPhotoUrl, CallCenterId, City, CommunityNickname, CompanyName, ContactId, Country, CreatedById, CreatedDate
FROM User
ORDER BY Username ASC
LIMIT 10
];
Comments (2)
-
repo owner -
reporter Oops. Thanks for raising other issue.
- Log in to comment
Duplicate of
#547.