Add "Rename class to containing file name" intention

#KT-25262 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-02-06 23:53:27 +09:00
committed by Mikhail Glukhikh
parent 39016594b1
commit e340af51df
15 changed files with 118 additions and 0 deletions
@@ -1732,6 +1732,11 @@
<category>Kotlin</category>
</intentionAction>
<intentionAction>
<className>org.jetbrains.kotlin.idea.intentions.RenameClassToContainingFileNameIntention</className>
<category>Kotlin</category>
</intentionAction>
<lang.inspectionSuppressor language="kotlin" implementationClass="org.jetbrains.kotlin.idea.inspections.KotlinInspectionSuppressor"/>
<localInspection implementationClass="org.jetbrains.kotlin.idea.intentions.ObjectLiteralToLambdaInspection"
@@ -0,0 +1,4 @@
// Bar.kt
class <spot>Bar</spot> {
}
@@ -0,0 +1,4 @@
// Bar.kt
class <spot>Foo</spot> {
}
@@ -0,0 +1,5 @@
<html>
<body>
This intention renames the class to containing file name.
</body>
</html>