mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 04:51:24 +07:00
IDEA-300739 Specify tips for lessons in learning course
GitOrigin-RevId: a74698489a8af593e07a936422e27ebe76da6f98
This commit is contained in:
committed by
intellij-monorepo-bot
parent
138d69abd6
commit
26265ef6ff
@@ -135,4 +135,51 @@ class PythonLearningCourse : LearningCourseBase(PythonLanguage.INSTANCE.id) {
|
||||
)
|
||||
},
|
||||
)
|
||||
|
||||
override fun getLessonIdToTipsMap(): Map<String, List<String>> = mutableMapOf(
|
||||
// EditorBasics
|
||||
"context.actions" to listOf("ContextActions"),
|
||||
"Actions" to listOf("find_action", "GoToAction"),
|
||||
"Select" to listOf("smart_selection", "CtrlW"),
|
||||
"Comment line" to listOf("CommentCode"),
|
||||
"Duplicate" to listOf("CtrlD", "DeleteLine"),
|
||||
"Move" to listOf("MoveUpDown"),
|
||||
"Surround and unwrap" to listOf("SurroundWith"),
|
||||
|
||||
// CodeCompletion
|
||||
"Basic completion" to listOf("CodeCompletion"),
|
||||
"Tab completion" to listOf("TabInLookups"),
|
||||
"Postfix completion" to listOf("PostfixCompletion"),
|
||||
|
||||
// Refactorings
|
||||
"Refactoring menu" to listOf("RefactorThis"),
|
||||
"Rename" to listOf("Rename"),
|
||||
"Extract variable" to listOf("IntroduceVariable"),
|
||||
"Extract method" to listOf("ExtractMethod"),
|
||||
"refactoring.quick.fix" to listOf("QuickFixRightArrow"),
|
||||
"refactoring.in.place" to listOf("InPlaceRefactoring"),
|
||||
|
||||
// CodeAssistance
|
||||
"CodeAssistance.LocalHistory" to listOf("local_history"),
|
||||
"CodeAssistance.CodeFormatting" to listOf("LayoutCode"),
|
||||
"CodeAssistance.ParameterInfo" to listOf("ParameterInfo"),
|
||||
"CodeAssistance.QuickPopups" to listOf("CtrlShiftIForLookup", "CtrlShiftI", "QuickJavaDoc"),
|
||||
"CodeAssistance.EditorCodingAssistance" to listOf("HighlightUsagesInFile", "NextPrevError", "NavigateBetweenErrors"),
|
||||
|
||||
// Navigation
|
||||
"Search everywhere" to listOf("SearchEverywhere", "GoToClass", "search_everywhere_general"),
|
||||
"Find in files" to listOf("FindReplaceToggle", "FindInPath"),
|
||||
"Declaration and usages" to listOf("GoToDeclaration", "ShowUsages"),
|
||||
"File structure" to listOf("FileStructurePopup"),
|
||||
"Recent Files and Locations" to listOf("recent-locations", "RecentFiles"),
|
||||
|
||||
// RunAndDebug
|
||||
"python.run.configuration" to listOf("SelectRunDebugConfiguration"),
|
||||
"python.debug.workflow" to listOf("BreakpointSpeedmenu", "QuickEvaluateExpression", "EvaluateExpressionInEditor"),
|
||||
).also { map ->
|
||||
val gitCourse = CourseManager.instance.findCommonCourseById("Git")
|
||||
if (gitCourse != null) {
|
||||
map.putAll(gitCourse.getLessonIdToTipsMap())
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user