You need to sign in to do that
Don't have an account?
Sam Mohyee 12
SFDX in Visual Studio Code has no formatter for Apex files?
When using Visual Studio code, you should be able to hit [SHIFT] + [ALT] + [F] in Windows to auto-format a file. I'm mainly interested in auto-indentation, like what is available in the Dev Console with [SHIFT] + [TAB].
Doing so on an apex file returns the error: There is no formatter for 'apex'-files installed.
Anyone know a solution to this? I'm currently looking into installing an extension to provide Java formatting support, and extending its file types to include .apex files.
Doing so on an apex file returns the error: There is no formatter for 'apex'-files installed.
Anyone know a solution to this? I'm currently looking into installing an extension to provide Java formatting support, and extending its file types to include .apex files.
Unfortunaly no ... VS Code does work to format Apex whilst this is being sorted out
https://github.com/forcedotcom/salesforcedx-vscode/issues/95
All Answers
Unfortunaly no ... VS Code does work to format Apex whilst this is being sorted out
https://github.com/forcedotcom/salesforcedx-vscode/issues/95
The linked guide explains how to proceed step by step to indent apex code using the shortcut CTRL + ALT + F in Visual Studio Code