262 - Support auto code formatting (#292)

This commit is contained in:
Carl-Robert 2023-11-27 01:24:02 +02:00 committed by GitHub
parent 2372eec3cf
commit ae7f5d17db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 56 additions and 8 deletions

View file

@ -23,6 +23,7 @@ public class ConfigurationState implements PersistentStateComponent<Configuratio
private boolean createNewChatOnEachAction;
private boolean ignoreGitCommitTokenLimit;
private boolean methodNameGenerationEnabled = true;
private boolean autoFormattingEnabled = true;
private Map<String, String> tableData = EditorActionsUtil.DEFAULT_ACTIONS;
public static ConfigurationState getInstance() {
@ -95,4 +96,12 @@ public class ConfigurationState implements PersistentStateComponent<Configuratio
public void setMethodNameGenerationEnabled(boolean methodNameGenerationEnabled) {
this.methodNameGenerationEnabled = methodNameGenerationEnabled;
}
public boolean isAutoFormattingEnabled() {
return autoFormattingEnabled;
}
public void setAutoFormattingEnabled(boolean autoFormattingEnabled) {
this.autoFormattingEnabled = autoFormattingEnabled;
}
}