# Requires https://plugins.jetbrains.com/plugin/10504-voice-code-idea app: jetbrains - tag(): user.line_commands tag(): user.multiple_cursors tag(): user.splits tag(): user.tabs tag(): user.command_search # multiple_cursors.py support end # Auto complete complete: user.idea("action CodeCompletion") perfect: user.idea("action CodeCompletion,action CodeCompletion") smart: user.idea("action SmartTypeCompletion") (done | finish): user.idea("action EditorCompleteStatement") # Copying grab : user.idea_grab(number) action []: user.deprecate_command("2024-09-02", "action", "please") # Refactoring refactor: user.idea("action Refactorings.QuickListPopupAction") refactor : user.idea("action Refactorings.QuickListPopupAction") insert(text) extract variable: user.idea("action IntroduceVariable") extract field: user.idea("action IntroduceField") extract constant: user.idea("action IntroduceConstant") extract parameter: user.idea("action IntroduceParameter") extract interface: user.idea("action ExtractInterface") extract method: user.idea("action ExtractMethod") refactor in line: user.idea("action Inline") refactor move: user.idea("action Move") refactor rename: user.idea("action RenameElement") rename file: user.idea("action RenameFile") fix (format | formatting): user.idea("action ReformatCode") fix imports: user.idea("action OptimizeImports") #navigation (go declaration | follow): user.idea("action GotoDeclaration") go implementation: user.idea("action GotoImplementation") go usage: user.idea("action FindUsages") go type: user.idea("action GotoTypeDeclaration") go test: user.idea("action GotoTest") go back: user.idea("action Back") go forward: user.idea("action Forward") # Search find (everywhere | all): user.idea("action SearchEverywhere") find (everywhere | all) [over]: user.idea("action SearchEverywhere") sleep(500ms) insert(text) (search | find) class: user.idea("action GotoClass") (search | find) file: user.idea("action GotoFile") (search | find) path: user.idea("action FindInPath") (search | find) symbol: user.idea("action GotoSymbol") (search | find) symbol $: user.idea("action GotoSymbol") insert(text) key("enter") recent: user.idea("action RecentFiles") surround [this] with [over]: idea("action SurroundWith") sleep(500ms) insert(text) # Making these longer to reduce collisions with real code dictation. insert generated [over]: user.idea("action Generate") sleep(500ms) insert(text) insert template [over]: idea("action InsertLiveTemplate") sleep(500ms) insert(text) create (template | snippet): user.idea("action SaveAsTemplate") # Recording toggle recording: user.idea("action StartStopMacroRecording") change (recording | recordings): user.idea("action EditMacros") play recording: user.idea("action PlaybackLastMacro") play recording [over]: idea("action PlaySavedMacrosAction") insert(text) sleep(500ms) Key("enter") # Marks go mark: user.idea("action ShowBookmarks") toggle mark: user.idea("action ToggleBookmark") go next mark: user.idea("action GotoNextBookmark") go last mark: user.idea("action GotoPreviousBookmark") toggle mark : user.idea("action ToggleBookmark{number}") go mark : user.idea("action GotoBookmark{number}") # Folding expand deep: user.idea("action ExpandRegionRecursively") expand all: user.idea("action ExpandAllRegions") collapse deep: user.idea("action CollapseRegionRecursively") collapse all: user.idea("action CollapseAllRegions") # miscellaneous # XXX These might be better than the structural ones depending on language. go next (method | function): user.idea("action MethodDown") go last (method | function): user.idea("action MethodUp") # Clipboard clippings: user.idea("action PasteMultiple") copy path: user.idea("action CopyPaths") copy reference: user.idea("action CopyReference") copy pretty: user.idea("action CopyAsRichText") # File Creation create sibling: user.idea("action NewElementSamePlace") create sibling [over]: user.idea("action NewElementSamePlace") sleep(500ms) insert(text) create file: user.idea("action NewElement") create file [over]: user.idea("action NewElement") sleep(500ms) insert(text) # Task Management go task: user.idea("action tasks.goto") go browser task: user.idea("action tasks.open.in.browser") switch task: user.idea("action tasks.switch") clear task: user.idea("action tasks.close") configure servers: user.idea("action tasks.configure.servers") # Git / Github (not using verb-noun-adjective pattern, mirroring terminal commands.) git pull: user.idea("action Vcs.UpdateProject") git commit: user.idea("action CheckinProject") git push: user.idea("action CheckinProject") git log: user.idea("action Vcs.ShowTabbedFileHistory") git browse: user.idea("action Github.Open.In.Browser") git (gets | gist): user.idea("action Github.Create.Gist") git (pull request | request): user.idea("action Github.Create.Pull.Request") git (view | show | list) (requests | request): user.idea("action Github.View.Pull.Request") git (annotate | blame): user.idea("action Annotate") git menu: user.idea("action Vcs.QuickListPopupAction") # Tool windows: # Toggling various tool windows toggle project: user.idea("action ActivateProjectToolWindow") toggle find: user.idea("action ActivateFindToolWindow") toggle run: user.idea("action ActivateRunToolWindow") toggle debug: user.idea("action ActivateDebugToolWindow") toggle events: user.idea("action ActivateEventLogToolWindow") toggle terminal: user.idea("action ActivateTerminalToolWindow") toggle git: user.idea("action ActivateVersionControlToolWindow") toggle structure: user.idea("action ActivateStructureToolWindow") toggle database: user.idea("action ActivateDatabaseToolWindow") toggle database changes: user.idea("action ActivateDatabaseChangesToolWindow") toggle make: user.idea("action ActivatemakeToolWindow") toggle to do: user.idea("action ActivateTODOToolWindow") toggle docker: user.idea("action ActivateDockerToolWindow") toggle favorites: user.idea("action ActivateFavoritesToolWindow") toggle last: user.idea("action JumpToLastWindow") # Pin/dock/float toggle pinned: user.idea("action TogglePinnedMode") toggle docked: user.idea("action ToggleDockMode") toggle floating: user.idea("action ToggleFloatingMode") toggle windowed: user.idea("action ToggleWindowedMode") toggle split: user.idea("action ToggleSideMode") # Settings, not windows toggle tool buttons: user.idea("action ViewToolButtons") toggle toolbar: user.idea("action ViewToolBar") toggle status [bar]: user.idea("action ViewStatusBar") toggle navigation [bar]: user.idea("action ViewNavigationBar") # Active editor settings toggle power save: user.idea("action TogglePowerSave") toggle whitespace: user.idea("action EditorToggleShowWhitespaces") toggle indents: user.idea("action EditorToggleShowIndentLines") toggle line numbers: user.idea("action EditorToggleShowLineNumbers") toggle (bread crumbs | breadcrumbs): user.idea("action EditorToggleShowBreadcrumbs") toggle gutter icons: user.idea("action EditorToggleShowGutterIcons") toggle wrap: user.idea("action EditorToggleUseSoftWraps") toggle parameters: user.idea("action ToggleInlineHintsAction") # Toggleable views toggle fullscreen: user.idea("action ToggleFullScreen") toggle distraction [free mode]: user.idea("action ToggleDistractionFreeMode") toggle presentation [mode]: user.idea("action TogglePresentationMode") # Toggle additionals toggle comment: code.toggle_comment() # Quick popups change scheme: user.idea("action QuickChangeScheme") # Always javadoc (toggle | pop) (doc | documentation): user.idea("action QuickJavaDoc") (pop deaf | toggle definition): user.idea("action QuickImplementations") pop type: user.idea("action ExpressionTypeInfo") pop parameters: user.idea("action ParameterInfo") # Breakpoints / debugging go breakpoints: user.idea("action ViewBreakpoints") toggle [line] breakpoint: user.idea("action ToggleLineBreakpoint") toggle method breakpoint: user.idea("action ToggleMethodBreakpoint") run menu: user.idea("action ChooseRunConfiguration") run test: user.idea("action RunClass") run test again: user.idea("action Rerun") debug test: user.idea("action DebugClass") step over: user.idea("action StepOver") step into: user.idea("action StepInto") step smart: user.idea("action SmartStepInto") step to line: user.idea("action RunToCursor") continue: user.idea("action Resume") # Grow / Shrink (grow | shrink) window right: user.idea("action ResizeToolWindowRight") (grow | shrink) window left: user.idea("action ResizeToolWindowLeft") (grow | shrink) window up: user.idea("action ResizeToolWindowUp") (grow | shrink) window down: user.idea("action ResizeToolWindowDown") # Movement go next (error | air): user.idea("action GotoNextError") go last (error | air): user.idea("action GotoPreviousError") fix next (error | air): user.idea("action GotoNextError") user.idea("action ShowIntentionActions") fix last (error | air): user.idea("action GotoPreviousError") user.idea("action ShowIntentionActions") # Special Selects select less: user.idea("action EditorUnSelectWord") select (more | this): user.idea("action EditorSelectWord") #jet brains-specific line commands. see line_commands.talon for generic ones expand until : user.select_range(number_1, number_2) user.idea("action ExpandRegion") collapse until : user.select_range(number_1, number_2) user.idea("action CollapseRegion") paste until : user.select_range(number_1, number_2) user.idea("action EditorPaste") refactor until : user.select_range(number_1, number_2) user.idea("action Refactorings.QuickListPopupAction") clone : user.line_clone(number) #find/replace clear last [over]: user.idea("find prev {text}, action EditorBackSpace") clear next [over]: user.idea("find next {text}, action EditorBackSpace") comment last [over]: user.idea("find prev {text}, action CommentByLineComment") comment next [over]: user.idea("find next {text}, action CommentByLineComment") go last [over]: user.idea("find prev {text}, action EditorRight") go next [over]: user.idea("find next {text}, action EditorRight") go [over]: user.idea("goto {number} 0,find next {text}, action EditorRight") paste last [over]: user.idea("find prev {text}, action EditorRight, action EditorPaste") paste next [over]: user.idea("find next {text}, action EditorRight, action EditorPaste") refactor [over]: user.idea("goto {number} 0,find next {text}, action Refactorings.QuickListPopupAction") refactor last [over]: user.idea("find prev {text}, action Refactorings.QuickListPopupAction") refactor next [over]: user.idea("find next {text}, action Refactorings.QuickListPopupAction") rename [over]: user.idea("goto {number} 0,find next {text}, action RenameElement") rename next [over]: user.idea("find next {text}, action RenameElement") rename last [over]: user.idea("find prev {text}, action RenameElement") complete [over]: user.idea("goto {number} 0,find next {text},action CodeCompletion") complete next [over]: user.idea("find next {text},action CodeCompletion") complete last [over]: user.idea("find prev {text},action CodeCompletion") quick fix [over]: user.idea("goto {number} 0,find next {text},action ShowIntentionActions") quick fix next [over]: user.idea("find next {text},action ShowIntentionActions") quick fix last [over]: user.idea("find prev {text},action ShowIntentionActions") replace last [over]: user.idea("find prev {text}, action EditorPaste") replace next [over]: user.idea("find next {text}, action EditorPaste") follow [over]: user.idea("goto {number} 0,find next {text},action GotoDeclaration") follow next [over]: user.idea("find next {text},action GotoDeclaration") follow last [over]: user.idea("find prev {text},action GotoDeclaration") reference [over]: user.idea("goto {number} 0,find next {text},action FindUsages") reference next [over]: user.idea("find next {text},action FindUsages") reference last [over]: user.idea("find prev {text},action FindUsages") select last [over]: user.idea("find prev {text}") select next [over]: user.idea("find next {text}") select [over]: user.idea("goto {number} 0,find next {text}") select camel left: user.extend_camel_left() select camel right: user.extend_camel_right() go camel left: user.camel_left() go camel right: user.camel_right() # requires plug-in: black-pycharm blacken: user.idea("action BLACKReformatCode")