mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
enable smart backspace by default
This commit is contained in:
@@ -160,6 +160,7 @@
|
||||
<grid row="2" column="0" row-span="1" col-span="2" vsize-policy="0" hsize-policy="3" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
|
||||
</constraints>
|
||||
<properties>
|
||||
<selected value="true"/>
|
||||
<text resource-bundle="messages/ApplicationBundle" key="checkbox.indenting.backspace"/>
|
||||
</properties>
|
||||
</component>
|
||||
|
||||
@@ -100,7 +100,7 @@ public class CodeInsightSettings implements PersistentStateComponent<Element>, C
|
||||
|
||||
public boolean SHOW_FULL_SIGNATURES_IN_PARAMETER_INFO = false;
|
||||
|
||||
public boolean INDENTING_BACKSPACE = false;
|
||||
public boolean INDENTING_BACKSPACE = true;
|
||||
|
||||
public boolean SMART_INDENT_ON_ENTER = true;
|
||||
public boolean INSERT_BRACE_ON_ENTER = true;
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
package com.intellij.codeInsight.editorActions;
|
||||
|
||||
import com.intellij.codeInsight.CodeInsightSettings;
|
||||
import com.intellij.openapi.application.Result;
|
||||
import com.intellij.openapi.command.WriteCommandAction;
|
||||
import com.intellij.testFramework.FileBasedTestCaseHelper;
|
||||
@@ -23,8 +22,6 @@ import com.intellij.testFramework.LightPlatformCodeInsightTestCase;
|
||||
import com.intellij.testFramework.TestDataPath;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
@@ -32,19 +29,6 @@ import org.junit.runner.RunWith;
|
||||
@RunWith(com.intellij.testFramework.Parameterized.class)
|
||||
@TestDataPath("/testData/../../../platform/lang-impl/testData/editor/indentingBackspace/")
|
||||
public class IndentingBackspaceHandlerTest extends LightPlatformCodeInsightTestCase implements FileBasedTestCaseHelper {
|
||||
private boolean mySavedConfigurationState;
|
||||
|
||||
@Before
|
||||
public void enableIndentingBackspace() {
|
||||
mySavedConfigurationState = CodeInsightSettings.getInstance().INDENTING_BACKSPACE;
|
||||
CodeInsightSettings.getInstance().INDENTING_BACKSPACE = true;
|
||||
}
|
||||
|
||||
@After
|
||||
public void restoreSettings() {
|
||||
CodeInsightSettings.getInstance().INDENTING_BACKSPACE = mySavedConfigurationState;
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAction() {
|
||||
new WriteCommandAction<Void>(null) {
|
||||
|
||||
@@ -22334,6 +22334,9 @@
|
||||
<option name="end" hit="End (on blank line)" />
|
||||
<option name="line" hit="End (on blank line)" />
|
||||
<option name="on" hit="End (on blank line)" />
|
||||
<option name="backspace" hit="Backspace smart indent" />
|
||||
<option name="smart" hit="Backspace smart indent" />
|
||||
<option name="indent" hit="Backspace smart indent" />
|
||||
<option name="enter" hit="Enter" />
|
||||
<option name="home" hit="Home" />
|
||||
<option name="a" hit="Insert 'self' when defining a method" />
|
||||
|
||||
Reference in New Issue
Block a user