Bit of an edge case but I needed to be able to edit two different Unreal Engine projects with different IDEs.

Under the projects folder in /Config/DefaultEditorSettings.ini you can add the lines below depended on the IDE you need.

Set to Rider

[/Script/SourceCodeAccess.SourceCodeAccessSettings]
PreferredAccessor=Rider

Set to VSCode

[/Script/SourceCodeAccess.SourceCodeAccessSettings]
PreferredAccessor=VisualStudioCode

Extras I found in ProjectFileGenerator.cs

clionsourcecodeaccessor
codelitesourcecodeaccessor
xcodesourcecodeaccessor
visualstudiocode
kdevelopsourcecodeaccessor
visualstudiosourcecodeaccessor
visualstudio2022