From e6ed8da67961b0512bd81c875286d1bb872af38f Mon Sep 17 00:00:00 2001 From: Peter Lucia <133892712+plucia-mitre@users.noreply.github.com> Date: Mon, 7 Oct 2024 17:28:53 -0400 Subject: [PATCH] Update VSCodeProjectScript.java Pre-populate VSCodeProject settings with Ghidra formatter preferences. --- Ghidra/Features/Base/ghidra_scripts/VSCodeProjectScript.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Ghidra/Features/Base/ghidra_scripts/VSCodeProjectScript.java b/Ghidra/Features/Base/ghidra_scripts/VSCodeProjectScript.java index 48682ba4a5..135bb060d2 100644 --- a/Ghidra/Features/Base/ghidra_scripts/VSCodeProjectScript.java +++ b/Ghidra/Features/Base/ghidra_scripts/VSCodeProjectScript.java @@ -114,6 +114,8 @@ public class VSCodeProjectScript extends GhidraScript { json.addProperty("java.import.gradle.enabled", false); json.addProperty("java.import.gradle.wrapper.enabled", false); json.addProperty("java.import.gradle.version", gradleVersion); + json.addProperty("java.format.settings.url", + new File(installDir, "support/eclipse/GhidraEclipseFormatter.xml").getAbsolutePath()); JsonArray sourcePathArray = new JsonArray(); json.add("java.project.sourcePaths", sourcePathArray);