diff --git a/platform/platform-impl/src/com/intellij/openapi/editor/actions/DeleteLineAction.java b/platform/platform-impl/src/com/intellij/openapi/editor/actions/DeleteLineAction.java index 2cb4ded96c54..1c1e2f8ba4e2 100644 --- a/platform/platform-impl/src/com/intellij/openapi/editor/actions/DeleteLineAction.java +++ b/platform/platform-impl/src/com/intellij/openapi/editor/actions/DeleteLineAction.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2014 JetBrains s.r.o. + * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,9 +24,13 @@ */ package com.intellij.openapi.editor.actions; +import com.intellij.featureStatistics.FeatureUsageTracker; import com.intellij.openapi.actionSystem.DataContext; import com.intellij.openapi.command.CommandProcessor; -import com.intellij.openapi.editor.*; +import com.intellij.openapi.editor.Caret; +import com.intellij.openapi.editor.Document; +import com.intellij.openapi.editor.Editor; +import com.intellij.openapi.editor.VisualPosition; import com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler; import com.intellij.openapi.editor.ex.util.EditorUtil; import com.intellij.openapi.ide.CopyPasteManager; @@ -43,6 +47,7 @@ public class DeleteLineAction extends TextComponentEditorAction { private static class Handler extends EditorWriteActionHandler { @Override public void executeWriteAction(final Editor editor, Caret caret, DataContext dataContext) { + FeatureUsageTracker.getInstance().triggerFeatureUsed("editor.delete.line"); CommandProcessor.getInstance().setCurrentCommandGroupId(EditorActionUtil.DELETE_COMMAND_GROUP); CopyPasteManager.getInstance().stopKillRings(); final Document document = editor.getDocument(); diff --git a/platform/platform-resources-en/src/messages/FeatureStatisticsBundle.properties b/platform/platform-resources-en/src/messages/FeatureStatisticsBundle.properties index 5bac8f72ff6e..2ff59e8d3846 100644 --- a/platform/platform-resources-en/src/messages/FeatureStatisticsBundle.properties +++ b/platform/platform-resources-en/src/messages/FeatureStatisticsBundle.properties @@ -60,6 +60,7 @@ editing.completion.cancelByControlArrows=Cancel lookup and move caret up/down in editing.completion.changeSorting=Changing completion variants sorting editing.completion.postfix=Postfix completion editing.select.word=Syntax aware selection +editor.delete.line=Editor delete line editing.incremental.search=Editor incremental search editing.add.carets.using.double.ctrl=Multiple carets move.element.left.right=Move code element left/right diff --git a/platform/platform-resources-en/src/tips/DeleteLine.html b/platform/platform-resources-en/src/tips/DeleteLine.html new file mode 100644 index 000000000000..9a00a801a2ac --- /dev/null +++ b/platform/platform-resources-en/src/tips/DeleteLine.html @@ -0,0 +1,10 @@ + +
+ + + + +&shortcut:EditorDeleteLine; in the editor deletes the whole line at the caret.
+ + + \ No newline at end of file diff --git a/resources/src/ProductivityFeaturesRegistry.xml b/resources/src/ProductivityFeaturesRegistry.xml index fe17fea78a4e..b3c75fb44a53 100644 --- a/resources/src/ProductivityFeaturesRegistry.xml +++ b/resources/src/ProductivityFeaturesRegistry.xml @@ -246,6 +246,12 @@ min-usage-count="10" first-show="2" successive-show="4"/> +