<!--

This file is intended to contain definitions for all commands in RStudio, as
well as menu structures (for main menu and popup menus).

<menu>
   Contains <menu>, <cmd>, <separator>
   @id (required): The method name for this menu on the command bundle interface
   @vertical: Whether the menu should be vertical. Defaults to true
   @label: For submenus, indicate the label in the parent menu for this submenu

<cmd> (in menu context)
   @refid (required): The id of the command that should appear here

<cmd> (in command context)
   @id (required): The method name for this command on the command bundle iface
   @label: Will be used for buttonLabel or menuLabel if they are not provided
   @buttonLabel: Label that should be used on toolbar button face. Use empty
      string if no label should be used
   @menuLabel: Label that should be used in a menu.
   @desc: Extended description (e.g. for tooltip)
   @checkable: Indicates whether the command has a stateful checked state,
      which is shown by the command when rendered in a menu (both GWT and
      native menus)
  @preventShortcutWhenDisabled: Whether the command's shortcut should be
      suppressed when the command is disabled
  @windowMode: Which window the command wants to operate on; possible values:
      "any": operates on current window (the default),
      "main": always operates on main window, and raises main window
      "background": always operates on main window, but in the background
      "<satellite name>": operates on named satellite; sent to the main window
        for processing unless fired from the named satellite
-->
<commands>
   <menu id="mainMenu" vertical="false">

      <separator/>

      <menu label="_File">
         <menu label="New _File">
            <cmd refid="newSourceDoc"/>
            <separator/>
            <cmd refid="newRMarkdownDoc"/>
            <cmd refid="newRShinyApp"/>
            <separator/>
            <cmd refid="newTextDoc"/>
            <cmd refid="newCppDoc"/>
            <separator/>
            <cmd refid="newSweaveDoc"/>
            <cmd refid="newRHTMLDoc"/>
            <cmd refid="newRPresentationDoc"/>
            <cmd refid="newRDocumentationDoc"/>
         </menu>
         <cmd refid="newProject"/>
         <separator/>
         <cmd refid="openSourceDoc"/>
         <cmd refid="reopenSourceDocWithEncoding"/>
         <menu label="_Recent Files">
            <cmd refid="mru0"/>
            <cmd refid="mru1"/>
            <cmd refid="mru2"/>
            <cmd refid="mru3"/>
            <cmd refid="mru4"/>
            <cmd refid="mru5"/>
            <cmd refid="mru6"/>
            <cmd refid="mru7"/>
            <cmd refid="mru8"/>
            <cmd refid="mru9"/>
            <cmd refid="mru10"/>
            <cmd refid="mru11"/>
            <cmd refid="mru12"/>
            <cmd refid="mru13"/>
            <cmd refid="mru14"/>
            <separator/>
            <cmd refid="clearRecentFiles"/>
         </menu>
         <separator/>
         <cmd refid="openProject"/>
         <cmd refid="openProjectInNewWindow"/>
         <menu label="Recent Pro_jects">
            <cmd refid="projectMru0"/>
            <cmd refid="projectMru1"/>
            <cmd refid="projectMru2"/>
            <cmd refid="projectMru3"/>
            <cmd refid="projectMru4"/>
            <cmd refid="projectMru5"/>
            <cmd refid="projectMru6"/>
            <cmd refid="projectMru7"/>
            <cmd refid="projectMru8"/>
            <cmd refid="projectMru9"/>
            <cmd refid="projectMru10"/>
            <cmd refid="projectMru11"/>
            <cmd refid="projectMru12"/>
            <cmd refid="projectMru13"/>
            <cmd refid="projectMru14"/>
            <separator/>
            <cmd refid="clearRecentProjects"/>
         </menu>
         <separator/>
         <cmd refid="shareProject"/>
         <separator/>
         <cmd refid="saveSourceDoc"/>
         <cmd refid="saveSourceDocAs"/>
         <cmd refid="saveSourceDocWithEncoding"/>
         <cmd refid="saveAllSourceDocs"/>
         <separator/>
         <cmd refid="knitDocument"/>
         <cmd refid="previewHTML"/>
         <cmd refid="compilePDF"/>
         <cmd refid="compileNotebook"/>
         <separator/>
         <cmd refid="rsconnectDeploy"/>
         <separator/>
         <cmd refid="printSourceDoc"/>
         <separator/>
         <cmd refid="closeSourceDoc"/>
         <cmd refid="closeAllSourceDocs"/>
         <cmd refid="closeOtherSourceDocs"/>
         <separator/>
         <cmd refid="closeProject"/>
         <separator/>
         <cmd refid="quitSession"/>
      </menu>

      <separator/>

      <menu label="_Edit">
         <cmd refid="sourceNavigateBack"/>
         <cmd refid="sourceNavigateForward"/>
         <separator/>
         <cmd refid="undoDummy"/>
         <cmd refid="redoDummy"/>
         <separator/>
         <cmd refid="cutDummy"/>
         <cmd refid="copyDummy"/>
         <cmd refid="pasteDummy"/>
         <separator/>
         <menu label="_Folding">
            <cmd refid="fold"/>
            <cmd refid="unfold"/>
            <separator/>
            <cmd refid="foldAll"/>
            <cmd refid="unfoldAll"/>
         </menu>
         <separator/>
         <cmd refid="goToLine"/>
         <separator/>
         <cmd refid="findReplace"/>
         <cmd refid="findNext"/>
         <cmd refid="findPrevious"/>
         <cmd refid="findFromSelection"/>
         <cmd refid="replaceAndFind"/>
         <separator/>
         <cmd refid="findInFiles"/>
         <separator/>
         <cmd refid="checkSpelling"/>
         <separator/>
         <cmd refid="consoleClear"/>
         <separator/>
         <cmd refid="macPreferences"/>
      </menu>

      <separator/>

      <menu label="_Code">
         <cmd refid="insertChunk"/>
         <cmd refid="insertSection"/>
         <separator/>
         <cmd refid="jumpTo"/>
         <cmd refid="goToFileFunction"/>
         <separator/>
         <cmd refid="toggleDocumentOutline"/>
         <separator/>
         <cmd refid="showDiagnosticsActiveDocument"/>
         <cmd refid="showDiagnosticsProject"/>
         <separator/>
         <cmd refid="goToHelp"/>
         <cmd refid="goToFunctionDefinition"/>
         <cmd refid="findUsages"/>
         <separator/>
         <cmd refid="extractFunction"/>
         <cmd refid="extractLocalVariable"/>
         <cmd refid="renameInFile"/>
         <separator/>
         <cmd refid="reflowComment"/>
         <cmd refid="commentUncomment"/>
         <cmd refid="insertRoxygenSkeleton"/>
         <separator/>
         <cmd refid="reindent"/>
         <cmd refid="reformatCode"/>
         <separator/>
         <cmd refid="executeCode"/>
         <cmd refid="executeLastCode"/>
         <menu label="Run Regi_on">
            <cmd refid="executeSetupChunk"/>
            <cmd refid="executePreviousChunks"/>
            <cmd refid="executeCurrentChunk"/>
            <cmd refid="executeNextChunk"/>
            <cmd refid="executeToCurrentLine"/>
            <cmd refid="executeFromCurrentLine"/>
            <cmd refid="executeCurrentFunction"/>
            <cmd refid="executeCurrentSection"/>
            <separator/>
            <cmd refid="executeAllCode"/>
         </menu>

         <separator/>
         <cmd refid="sourceActiveDocument"/>
         <cmd refid="sourceActiveDocumentWithEcho"/>
         <separator/>
         <cmd refid="sourceFile"/>
         <separator/>
      </menu>

      <separator/>

      <menu label="_View">
         <cmd refid="showToolbar"/>
         <cmd refid="hideToolbar"/>
         
         <separator/>
         
         <menu label="P_anes">
            <cmd refid="layoutEndZoom"/>
            <separator/>
            <cmd refid="layoutConsoleOnLeft"/>
            <cmd refid="layoutConsoleOnRight"/>
            <separator/>
            <cmd refid="paneLayout"/>
            <separator/>
            <cmd refid="layoutZoomSource"/>
            <cmd refid="layoutZoomConsole"/>
            <cmd refid="layoutZoomHelp"/>
            <separator/>
            <cmd refid="layoutZoomHistory"/>
            <cmd refid="layoutZoomFiles"/>
            <cmd refid="layoutZoomPlots"/>
            <cmd refid="layoutZoomPackages"/>
            <cmd refid="layoutZoomEnvironment"/>
            <cmd refid="layoutZoomViewer"/>
            <cmd refid="layoutZoomVcs"/>
            <cmd refid="layoutZoomBuild"/>
         </menu>
         
         <separator/>
         
         <cmd refid="zoomActualSize"/>
         <cmd refid="zoomIn"/>
         <cmd refid="zoomOut"/>
         <separator/>
         <cmd refid="toggleFullScreen"/>
         <separator/>
         <cmd refid="switchToTab"/>
         <cmd refid="nextTab"/>
         <cmd refid="previousTab"/>
         <cmd refid="firstTab"/>
         <cmd refid="lastTab"/>
         <separator/>
         
         <cmd refid="activateSource"/>
         <cmd refid="activateConsole"/>
         <cmd refid="activateHelp"/>
         <separator/>
         <cmd refid="activateHistory"/>
         <cmd refid="activateFiles"/>
         <cmd refid="activatePlots"/>
         <cmd refid="activatePackages"/>
         <cmd refid="activateEnvironment"/>
         <cmd refid="activateViewer"/>
         <cmd refid="activateVcs"/>
         <cmd refid="activateBuild"/>
         
         <separator/>
         <cmd refid="synctexSearch"/>
      </menu>

      <separator/>

      <menu label="_Plots">
         <cmd refid="nextPlot"/>
         <cmd refid="previousPlot"/>
         <separator/>
         <cmd refid="zoomPlot"/>
         <separator/>
         <cmd refid="savePlotAsImage"/>
         <cmd refid="savePlotAsPdf"/>
         <separator/>
         <cmd refid="copyPlotToClipboard"/>
         <separator/>
         <cmd refid="removePlot"/>
         <separator/>
         <cmd refid="clearPlots"/>
      </menu>

      <separator/>

      <menu label="_Session">
         <cmd refid="newSession"/>
         <separator/>
         <cmd refid="interruptR"/>
         <cmd refid="restartR"/>
         <separator/>
         <cmd refid="terminateR"/>
         <separator/>
         <menu label="Set _Working Directory">
            <cmd refid="setWorkingDirToProjectDir"/>
            <cmd refid="setWorkingDirToActiveDoc"/>
            <cmd refid="setWorkingDirToFilesPane"/>
            <separator/>
            <cmd refid="setWorkingDir"/>
         </menu>
         <separator/>
         <cmd refid="loadWorkspace"/>
         <cmd refid="saveWorkspace"/>
         <separator/>
         <cmd refid="clearWorkspace"/>
         <separator/>
         <cmd refid="quitSession"/>
      </menu>

      <menu label="_Build">
         <cmd refid="devtoolsLoadAll"/>
         <cmd refid="buildAll"/>
         <cmd refid="rebuildAll"/>
         <cmd refid="cleanAll"/>
         <separator/>
         <cmd refid="testPackage"/>
         <separator/>
         <cmd refid="checkPackage"/>
         <separator/>
         <cmd refid="buildSourcePackage"/>
         <cmd refid="buildBinaryPackage"/>
         <separator/>
         <cmd refid="roxygenizePackage"/>
         <separator/>
         <cmd refid="stopBuild"/>
         <separator/>
         <cmd refid="buildToolsProjectSetup"/>
      </menu>

      <menu label="_Debug">
         <cmd refid="debugBreakpoint"/>
         <cmd refid="debugClearBreakpoints"/>
         <separator/>
         <cmd refid="debugStep"/>
         <cmd refid="debugStepInto"/>
         <cmd refid="debugFinish"/>
         <cmd refid="debugContinue"/>
         <cmd refid="debugStop"/>
         <separator/>
         <menu label="_On Error">
            <cmd refid="errorsMessage"/>
            <cmd refid="errorsTraceback"/>
            <cmd refid="errorsBreak"/>
         </menu>
         <separator/>
         <cmd refid="debugHelp"/>
      </menu>

      <separator/>

      <menu label="_Tools">
         <menu label="_Import Dataset">
            <cmd refid="importDatasetFromFile"/>
            <cmd refid="importDatasetFromURL"/>
         </menu>
         <separator/>
         <cmd refid="installPackage"/>
         <cmd refid="updatePackages"/>
         <separator/>
         <menu label="_Version Control">
            <cmd refid="vcsFileDiff"/>
            <cmd refid="vcsFileLog"/>
            <cmd refid="vcsFileRevert"/>
            <separator/>
            <cmd refid="vcsViewOnGitHub"/>
            <cmd refid="vcsBlameOnGitHub"/>
            <separator/>
            <cmd refid="vcsCommit"/>
            <separator/>
            <cmd refid="vcsPull"/>
            <cmd refid="vcsCleanup"/>
            <cmd refid="vcsPush"/>
            <separator/>
            <cmd refid="vcsShowHistory"/>
            <separator/>
            <cmd refid="versionControlProjectSetup"/>
         </menu>
         <separator/>
         <cmd refid="showShellDialog"/>
         <menu label="Addins">
            <cmd refid="addinsMru0"/>
            <cmd refid="addinsMru1"/>
            <cmd refid="addinsMru2"/>
            <cmd refid="addinsMru3"/>
            <cmd refid="addinsMru4"/>
            <cmd refid="addinsMru5"/>
            <cmd refid="addinsMru6"/>
            <cmd refid="addinsMru7"/>
            <cmd refid="addinsMru8"/>
            <cmd refid="addinsMru9"/>
            <cmd refid="addinsMru10"/>
            <cmd refid="addinsMru11"/>
            <cmd refid="addinsMru12"/>
            <cmd refid="addinsMru13"/>
            <cmd refid="addinsMru14"/>
            <separator/>
            <cmd refid="browseAddins"/>
         </menu>
         <separator/>
         <cmd refid="helpKeyboardShortcuts"/>
         <cmd refid="modifyKeyboardShortcuts"/>
         <separator/>
         <cmd refid="projectOptions"/>
         <separator/>
         <cmd refid="showOptions"/>
      </menu>

      <separator/>

      <menu label="_Help">
         <cmd refid="helpHome"/>
         <cmd refid="showAboutDialog"/>
         <cmd refid="checkForUpdates"/>
         <separator/>
         <cmd refid="helpUsingRStudio"/>
         <cmd refid="rstudioSupport"/>
         <separator/>
         <menu label="_Cheatsheets">
            <cmd refid="openRStudioIDECheatSheet"/>'
            <cmd refid="openDataWranglingCheatSheet"/>
            <cmd refid="openDataVisualizationCheatSheet"/>
            <cmd refid="openRMarkdownCheatSheet"/>
            <cmd refid="openRMarkdownReferenceGuide"/>
            <cmd refid="openShinyCheatSheet"/>
            <cmd refid="openPackageDevelopmentCheatSheet"/>
         </menu>
         <separator/>
         <cmd refid="markdownHelp"/>
         <cmd refid="openRoxygenQuickReference"/>
         <separator/>
         <cmd refid="rstudioAgreement"/>
         <separator/>
         <menu label="Dia_gnostics">
            <cmd refid="showRequestLog"/>
            <cmd refid="showLogFiles"/>
            <cmd refid="updateCredentials"/>
            <cmd refid="diagnosticsReport"/>
            <separator/>
            <cmd refid="debugDumpContents"/>
            <cmd refid="debugImportDump"/>
            <cmd refid="raiseException"/>
-           <cmd refid="raiseException2"/>
         </menu>
      </menu>

      <separator/>

   </menu>

   <shortcuts>
      <!--
         Only the following keys may be used:
            Alphanumerics
            /
            Enter
            Left, Right, Up, Down
            Tab
            PageUp, PageDown
            F1-F12
            =
            <
            `
            .
      -->
      <!-- Valid modifiers are Ctrl, Alt, Meta, Shift, and Cmd -->
      <!-- "Cmd" means Ctrl OR Meta -->
      <!-- Use spaces for key sequences, e.g. 'Ctrl+X Ctrl+F' -->
      <!-- Separate shortcuts with '|', e.g. 'Ctrl+X Ctrl+F|Cmd+O' -->
      <shortcutgroup name="Source Editor">
         <shortcut refid="insertChunk" value="Cmd+Alt+I"/>
         <shortcut refid="insertSection" value="Cmd+Shift+R"/>
         <shortcut refid="extractFunction" value="Cmd+Alt+X"/>
         <shortcut refid="extractLocalVariable" value="Cmd+Alt+V"/>
         <shortcut refid="commentUncomment" value="Cmd+Shift+C"/>
         <shortcut refid="reindent" value="Cmd+I"/>
         <shortcut refid="reflowComment" value="Cmd+Shift+/" if="!(org.rstudio.core.client.BrowseCap.isMacintosh() &amp;&amp; org.rstudio.core.client.BrowseCap.isChrome())"/>
         <shortcut refid="reflowComment" value="Cmd+Alt+Shift+/" if="org.rstudio.core.client.BrowseCap.isMacintosh() &amp;&amp; org.rstudio.core.client.BrowseCap.isChrome()"/>
         <shortcut refid="reformatCode" value="Cmd+Shift+A"/>
         <shortcut refid="showDiagnosticsProject" value="Cmd+Shift+Alt+P"/>
         <shortcut refid="fold" value="Alt+L" if="!org.rstudio.core.client.BrowseCap.isMacintosh()" title="Collapse Fold"/>
         <shortcut refid="fold" value="Cmd+Alt+L" if="org.rstudio.core.client.BrowseCap.isMacintosh()" title="Collapse Fold"/>
         <shortcut refid="unfold" value="Shift+Alt+L" if="!org.rstudio.core.client.BrowseCap.isMacintosh()" title="Expand Fold"/>
         <shortcut refid="unfold" value="Cmd+Shift+Alt+L" if="org.rstudio.core.client.BrowseCap.isMacintosh()" title="Expand Fold"/>
         <shortcut refid="foldAll" value="Alt+O" if="!org.rstudio.core.client.BrowseCap.isMacintosh()" title="Collapse All Folds"/>
         <shortcut refid="foldAll" value="Cmd+Alt+O" if="org.rstudio.core.client.BrowseCap.isMacintosh()" title="Collapse All Folds"/>
         <shortcut refid="unfoldAll" value="Shift+Alt+O" if="!org.rstudio.core.client.BrowseCap.isMacintosh()" title="Expand All Folds"/>
         <shortcut refid="unfoldAll" value="Cmd+Shift+Alt+O" if="org.rstudio.core.client.BrowseCap.isMacintosh()" title="Expand All Folds"/>
         <shortcut value="Ctrl+K" title="Delete to Line End" if="org.rstudio.core.client.BrowseCap.isMacintosh()" />
         <shortcut value="Alt+Up" title="Move Lines Up" />
         <shortcut value="Alt+Down" title="Move Lines Down" />
         <shortcut value="Ctrl+D" title="Delete Line" if="!org.rstudio.core.client.BrowseCap.isMacintosh()" />
         <shortcut value="Cmd+D" title="Delete Line" if="org.rstudio.core.client.BrowseCap.isMacintosh()" />
         <shortcut value="Ctrl+U" title="Yank Line Up to Cursor" />
         <shortcut value="Ctrl+K" title="Yank Line After Cursor" />
         <shortcut value="Ctrl+Y" title="Insert Yanked Text" />
         <shortcut value="Ctrl+T" title="Transpose Letters" if="org.rstudio.core.client.BrowseCap.isMacintosh()"/>
         <shortcut value="Alt+-" title="Insert Assignment Operator"/>
         <shortcut value="Cmd+Shift+M" title="Insert Pipe Operator" />
         <shortcut refid="renameInFile" value="Cmd+Alt+Shift+M" />
         <shortcut refid="insertRoxygenSkeleton" value="Cmd+Shift+Alt+R" title="Insert Roxygen Skeleton" />
         <shortcut refid="insertSnippet" value="Shift+Tab" title="Insert Snippet"/>
      </shortcutgroup>
      <shortcutgroup name="Source Navigation">
         <shortcut refid="sourceNavigateBack" value="Cmd+F9"/>
         <shortcut refid="sourceNavigateForward" value="Cmd+F10"/>
         <shortcut refid="findUsages" value="Cmd+Alt+U"/>
         <shortcut refid="findFromSelection" value="Meta+E" if="org.rstudio.core.client.BrowseCap.isMacintosh()"/>
         <shortcut refid="findFromSelection" value="Ctrl+F3" if="!org.rstudio.core.client.BrowseCap.isMacintosh()"/>
         <shortcut refid="findReplace" value="Meta+F"/>
         <shortcut refid="findReplace" value="Ctrl+F" if="!org.rstudio.core.client.BrowseCap.isMacintosh()" disableModes="emacs"/>
         <shortcut refid="findNext" value="Meta+G" if="!org.rstudio.core.client.BrowseCap.isWindows()"/>
         <shortcut refid="findNext" value="Ctrl+G" if="!org.rstudio.core.client.BrowseCap.isWindows()" disableModes="emacs"/>
         <shortcut refid="findNext" value="F3" if="org.rstudio.core.client.BrowseCap.isWindows()"/>
         <shortcut refid="findPrevious" value="Cmd+Shift+G" if="!org.rstudio.core.client.BrowseCap.isWindows()"/>
         <shortcut refid="findPrevious" value="Shift+F3" if="org.rstudio.core.client.BrowseCap.isWindows()"/>
         <shortcut refid="replaceAndFind" value="Cmd+Shift+J"/>
         <shortcut refid="goToFileFunction" value="Ctrl+."/>
         <shortcut refid="goToLine" value="Alt+G" disableModes="default,vim"/>
         <shortcut refid="goToLine" value="Shift+Alt+G" if="!org.rstudio.core.client.BrowseCap.isMacintosh()"/>
         <shortcut refid="goToLine" value="Cmd+Shift+Alt+G" if="org.rstudio.core.client.BrowseCap.isMacintosh()"/>
         <shortcut refid="jumpTo" value="Shift+Alt+J" if="!org.rstudio.core.client.BrowseCap.isMacintosh()"/>
         <shortcut refid="jumpTo" value="Cmd+Shift+Alt+J" if="org.rstudio.core.client.BrowseCap.isMacintosh()"/>
         <shortcut refid="jumpToMatching" value="Ctrl+P" disableModes="emacs"/>
         <shortcut refid="expandToMatching" value="Ctrl+Shift+E" if="org.rstudio.core.client.BrowseCap.isMacintosh()"/>
         <shortcut refid="expandToMatching" value="Ctrl+Shift+Alt+E" if="!org.rstudio.core.client.BrowseCap.isMacintosh()"/>
         <shortcut refid="toggleDocumentOutline" value="Cmd+Shift+O"/>
         <shortcut value="Ctrl+Alt+Up" title="Add cursor above current cursor"/>
         <shortcut value="Ctrl+Alt+Down" title="Add cursor below current cursor"/>
         <shortcut refid="expandSelection" value="Ctrl+Shift+Up" if="!org.rstudio.core.client.BrowseCap.isMacintosh()"/>
         <shortcut refid="shrinkSelection" value="Ctrl+Shift+Down" if="!org.rstudio.core.client.BrowseCap.isMacintosh()"/>
         <shortcut refid="expandSelection" value="Cmd+Alt+Shift+Up" if="org.rstudio.core.client.BrowseCap.isMacintosh()"/>
         <shortcut refid="shrinkSelection" value="Cmd+Alt+Shift+Down" if="org.rstudio.core.client.BrowseCap.isMacintosh()"/>
         <shortcut refid="goToNextSection" value="Cmd+PageDown"/>
         <shortcut refid="goToPrevSection" value="Cmd+PageUp"/>
         <shortcut refid="splitIntoLines" value="Ctrl+Alt+A" disableModes="emacs"/>
         <shortcut refid="goToStartOfCurrentScope" value="Ctrl+Alt+A" disableModes="default,vim"/>
         <shortcut refid="goToEndOfCurrentScope" value="Ctrl+Alt+E" disableModes="default,vim"/>
         <shortcut value="Cmd+Alt+Up" title="Add cursor above current cursor"/>
         <shortcut value="Cmd+Alt+Down" title="Add cursor below current cursor"/>
         <shortcut value="Ctrl+Alt+Shift+Up" title="Move active cursor up"/>
         <shortcut value="Ctrl+Alt+Shift+Down" title="Move active cursor down"/>
      </shortcutgroup>
      <shortcutgroup name="Panes">
         <shortcut refid="switchFocusSourceConsole" value="Ctrl+X O|Ctrl+X Ctrl+O" disableModes="default,vim"/>
         <shortcut refid="activateConsole" value="Alt+X" disableModes="default,vim"/>
         
         <shortcut refid="activateSource" value="Ctrl+1"/>
         <shortcut refid="activateConsole" value="Ctrl+2"/>
         <shortcut refid="activateHelp" value="Ctrl+3"/>
         <shortcut refid="activateHistory" value="Ctrl+4"/>
         <shortcut refid="activateFiles" value="Ctrl+5"/>
         <shortcut refid="activatePlots" value="Ctrl+6"/>
         <shortcut refid="activatePackages" value="Ctrl+7"/>
         <shortcut refid="activateEnvironment" value="Ctrl+8"/>
         <shortcut refid="activateViewer" value="Ctrl+9"/>
         <shortcut refid="activateVcs" value="Ctrl+F1"/>
         <shortcut refid="activateBuild" value="Ctrl+F2"/>

         <!-- Windows masks Ctrl+Shift+0 for IME input -->
         <shortcut refid="layoutEndZoom" value="Ctrl+Shift+0" if="!org.rstudio.core.client.BrowseCap.isWindowsDesktop()" />
         <shortcut refid="layoutEndZoom" value="Ctrl+Alt+Shift+0" if="org.rstudio.core.client.BrowseCap.isWindowsDesktop()" />
      </shortcutgroup>
      <shortcutgroup name="Tabs">
         <shortcut refid="switchToTab" value="Ctrl+X B" if="org.rstudio.core.client.BrowseCap.isMacintosh()"/>
         <shortcut refid="switchToTab" value="Ctrl+X B" if="!org.rstudio.core.client.BrowseCap.isMacintosh()" disableModes="default,vim"/>
         <shortcut refid="switchToTab" value="Ctrl+Shift+."/>
         <shortcut refid="previousTab" value="Ctrl+Alt+Left" if="!org.rstudio.core.client.BrowseCap.isLinux()"/>
         <shortcut refid="nextTab" value="Ctrl+Alt+Right" if="!org.rstudio.core.client.BrowseCap.isLinux()"/>
         <shortcut refid="previousTab" value="Ctrl+PageUp" if="org.rstudio.core.client.BrowseCap.isLinux()"/>
         <shortcut refid="nextTab" value="Ctrl+PageDown" if="org.rstudio.core.client.BrowseCap.isLinux()"/>
         <shortcut refid="firstTab" value="Ctrl+Alt+Shift+Left"/>
         <shortcut refid="lastTab" value="Ctrl+Alt+Shift+Right"/>
         <shortcut refid="previousTab" value="Ctrl+X Left" disableModes="default,vim"/>
         <shortcut refid="previousTab" value="Ctrl+F11"/>
         <shortcut refid="nextTab" value="Ctrl+X Right" disableModes="default,vim"/>
         <shortcut refid="nextTab" value="Ctrl+F12"/>
         <shortcut refid="firstTab" value="Ctrl+Shift+F11"/>
         <shortcut refid="lastTab" value="Ctrl+Shift+F12"/>

      </shortcutgroup>
      <shortcutgroup name="Files">
      
         <shortcut refid="saveSourceDoc" value="Ctrl+X Ctrl+S" disableModes="default,vim"/>
         <shortcut refid="saveSourceDoc" value="Ctrl+S" disableModes="emacs"/>
         <shortcut refid="saveSourceDoc" value="Meta+S" if="org.rstudio.core.client.BrowseCap.isMacintosh()"/>
         
         <shortcut refid="saveAllSourceDocs" value="Cmd+Alt+S"/>
         
         <shortcut refid="newSourceDoc" value="Ctrl+X Ctrl+N" disableModes="default,vim"/>
         <shortcut refid="newSourceDoc" value="Cmd+Shift+N" if="!org.rstudio.core.client.BrowseCap.isChrome()" title="New R Script"/>
         <shortcut refid="newSourceDoc" value="Cmd+Shift+Alt+N" if="org.rstudio.core.client.BrowseCap.isChrome()" title="New R Script"/>
         
         <shortcut refid="openSourceDoc" value="Ctrl+X Ctrl+F" disableModes="default,vim"/>
         <shortcut refid="openSourceDoc" value="Ctrl+O" disableModes="emacs"/>
         <shortcut refid="openSourceDoc" value="Meta+O" if="org.rstudio.core.client.BrowseCap.isMacintosh()"/>
         
         <shortcut refid="closeSourceDoc" value="Ctrl+X K" disableModes="default,vim"/>
         <shortcut refid="closeSourceDoc" value="Cmd+W" disableModes="emacs"/>
         
         <shortcut refid="closeOtherSourceDocs" value="Cmd+Shift+Alt+W"/>
         <shortcut refid="closeAllSourceDocs" value="Cmd+Shift+W"/>
         <shortcut refid="findInFiles" value="Cmd+Shift+F"/>
      </shortcutgroup>
      <shortcutgroup name="Build">
         <shortcut refid="compilePDF" value="Cmd+Shift+K"/>
         <shortcut refid="previewHTML" value="Cmd+Shift+K" />
         <shortcut refid="knitDocument" value="Cmd+Shift+K" />
         <shortcut refid="buildAll" value="Cmd+Shift+B"/>
         <shortcut refid="devtoolsLoadAll" value="Cmd+Shift+L"/>
         <shortcut refid="checkPackage" value="Cmd+Shift+E"/>
         <shortcut refid="testPackage" value="Cmd+Shift+T" if="org.rstudio.studio.client.application.Desktop.isDesktop()"/>
         <shortcut refid="testPackage" value="Cmd+Alt+F7" if="!org.rstudio.studio.client.application.Desktop.isDesktop()"/>
         <shortcut refid="roxygenizePackage" value="Cmd+Shift+D"/>
      </shortcutgroup>
      <shortcutgroup name="Execute">
         <shortcut refid="sourceActiveDocument" value="Cmd+Shift+S" title="Source Active File"/>
         <shortcut refid="sourceActiveDocumentWithEcho" value="Cmd+Shift+Enter"/>;
         <shortcut refid="sourceFile" value="Ctrl+Alt+G" title="Source a File..."/>
         <shortcut refid="executeLastCode" value="Cmd+Shift+P"/>
         <shortcut refid="executeCode" value="Cmd+R" if="org.rstudio.core.client.BrowseCap.isWindowsDesktop()" disableModes="vim"/>
         <shortcut refid="executeCode" value="Ctrl+C Ctrl+N" disableModes="default,vim"/>
         <shortcut refid="executeCode" value="Cmd+Enter"/>
         <shortcut refid="executeCodeWithoutMovingCursor" value="Alt+Enter"/>
         <shortcut refid="executeAllCode" value="Cmd+Alt+R"/>
         <shortcut refid="executeToCurrentLine" value="Cmd+Alt+B"/>
         <shortcut refid="executeFromCurrentLine" value="Cmd+Alt+E"/>
         <shortcut refid="executeCurrentFunction" value="Ctrl+C Ctrl+F" disableModes="default,vim"/>
         <shortcut refid="executeCurrentFunction" value="Cmd+Alt+F"/>
         <shortcut refid="executeCurrentSection" value="Cmd+Alt+T"/>
         <shortcut refid="executePreviousChunks" value="Cmd+Alt+P"/>
         <shortcut refid="executeCurrentChunk" value="Cmd+Alt+C"/>
         <shortcut refid="executeCurrentChunk" value="Cmd+Shift+Enter"/>
         <shortcut refid="executeNextChunk" value="Cmd+Alt+N"/>
      </shortcutgroup>
      <shortcutgroup name="Debug">
         <shortcut refid="debugBreakpoint" value="Shift+F9"/>
         <shortcut refid="debugStep" value="F10"/>
         <shortcut refid="debugStepInto" value="Shift+F4"/>
         <shortcut refid="debugFinish" value="Shift+F6"/>
         <shortcut refid="debugContinue" value="Shift+F5"/>
         <shortcut refid="debugStop" value="Shift+F8"/>
      </shortcutgroup>
      <shortcutgroup name="Source Control">
         <shortcut refid="vcsFileDiff" value="Ctrl+Alt+D" title="Diff Files"/>
         <shortcut refid="vcsCommit" value="Ctrl+Alt+M" />
      </shortcutgroup>
      <shortcutgroup name="Other">
         <shortcut value="F1" title="Show Function Help" />
         <shortcut value="F2" title="Go To Function / File"/>
         <shortcut value="Tab" title="Complete Code" />
         <shortcut refid="quitSession" value="Cmd+Q" if="org.rstudio.studio.client.application.Desktop.isDesktop()"/>
         <shortcut refid="restartR" value="Meta+Shift+0" if="org.rstudio.core.client.BrowseCap.isMacintosh()"/>
         <shortcut refid="restartR" value="Cmd+Shift+F10"/>
         <shortcut refid="previousPlot" value="Cmd+Shift+PageUp" />
         <shortcut refid="nextPlot" value="Cmd+Shift+PageDown" />
         <shortcut refid="previousPlot" value="Cmd+Alt+F11" />
         <shortcut refid="nextPlot" value="Cmd+Alt+F12" />
         <shortcut refid="showRequestLog" value="Ctrl+`" />
         <shortcut refid="logFocusedElement" value="Ctrl+Shift+`" />
         <shortcut refid="setWorkingDir" value="Ctrl+Shift+H" />
         <shortcut refid="synctexSearch" value="Cmd+F8" />
         <shortcut refid="checkSpelling" value="F7" />
         <shortcut refid="refreshSuperDevMode" value="Cmd+Shift+F9"/>
         <shortcut refid="viewerSaveAllAndRefresh" value="Cmd+Shift+F5"/>
         <shortcut refid="helpKeyboardShortcuts" value="Alt+Shift+K"/>
         <shortcut refid="toggleFullScreen" value="Ctrl+Meta+F" if="org.rstudio.core.client.BrowseCap.isMacintoshDesktop()"/>
         <shortcut refid="showOptions" value="Meta+," if="org.rstudio.core.client.BrowseCap.isMacintosh()"/>
         <shortcut refid="projectOptions" value="Shift+Meta+," if="org.rstudio.core.client.BrowseCap.isMacintosh()"/> 
         <shortcut refid="goToHelp" value="Ctrl+C Ctrl+V" disableModes="default,vim"/>
      </shortcutgroup>
      <shortcutgroup name="Console">
         <shortcut refid="consoleClear" value="Ctrl+L" disableModes="emacs"/>
         <shortcut value="Cmd+Up" title="Popup Command History"/>
      </shortcutgroup>

      <!-- 
      Shortcuts in this group won't be shown in the quick reference card. 
       -->
      <shortcutgroup name="Not Displayed">
         <shortcut refid="layoutZoomSource" value="Ctrl+Shift+1"/>
         <shortcut refid="layoutZoomConsole" value="Ctrl+Shift+2"/>
         <shortcut refid="layoutZoomHelp" value="Ctrl+Shift+3"/>
         <shortcut refid="layoutZoomHistory" value="Ctrl+Shift+4"/>
         <shortcut refid="layoutZoomFiles" value="Ctrl+Shift+5"/>
         <shortcut refid="layoutZoomPlots" value="Ctrl+Shift+6"/>
         <shortcut refid="layoutZoomPackages" value="Ctrl+Shift+7"/>
         <shortcut refid="layoutZoomEnvironment" value="Ctrl+Shift+8"/>
         <shortcut refid="layoutZoomViewer" value="Ctrl+Shift+9"/>
         <shortcut refid="layoutZoomVcs" value="Ctrl+Shift+F1"/>
         <shortcut refid="layoutZoomBuild" value="Ctrl+Shift+F2"/>
      </shortcutgroup>
         
   </shortcuts>

   <!--
   Valid cmd attributes:
      id           The unique name for this command. There must be a matching
                   method with this name on the CommandBundle subinterface.

      label        The user-visible name for this command. Will be used on
                   buttons and menus unless overridden by menuLabel or
                   buttonLabel.

      menuLabel    The name that will be displayed in the main menu and/or
                   popup menus.

      buttonLabel  The name that will be displayed on toolbar buttons.

      desc         A short description to be used as a tooltip.

      enabled      [true|false] Whether the command should start out as enabled
                   or disabled. Defaults to true.

      visible      [true|false] Whether the command should start out as visible
                   or hidden. Defaults to true.

      rebindable   [true|false] Whether this command should be rebindable by the
                   user to different keyboard shortcuts. Defaults to true.
   -->

   <cmd id="setWorkingDirToProjectDir"
        label="Set Working Directory to Project Directory"
        buttonLabel=""
        menuLabel="To Project Directory"
        desc="Change working directory to project root directory"/>

   <cmd id="setWorkingDirToActiveDoc"
        label="Set Working Directory to Current Document's Directory"
        buttonLabel=""
        menuLabel="To Source File Location"
        desc="Change working directory to path of active document"/>
        
   <cmd id="setWorkingDirToFilesPane"
        label="Set Working Directory to Directory in Files Pane"
        buttonLabel=""
        menuLabel="To _Files Pane Location"
        desc="Change working directory to location of Files pane"/>
        
   <cmd id="setWorkingDir"
        label="Set Working Directory..."
        buttonLabel=""
        menuLabel="_Choose Directory..."
        desc="Select and change to a new working directory"/>

   <cmd id="newSourceDoc"
        label="Create a New R Script"
        buttonLabel=""
        menuLabel="_R Script"
        desc="Create a new R script"/>

   <cmd id="newTextDoc"
        menuLabel="_Text File"
        desc="Create a new text file"
        rebindable="false"/>
        
   <cmd id="newCppDoc"
        menuLabel="_C++ File"
        desc="Create a new C++ file"
        rebindable="false"/>
        
   <cmd id="rcppHelp"
        desc="Help on using Rcpp"
        rebindable="false"/>
        
   <cmd id="printCppCompletions"
        desc="Print C++ Completions"
        rebindable="false"/>
        
   <cmd id="newSweaveDoc"
        menuLabel="R _Sweave"
        desc="Create a new R Sweave document"
        rebindable="false"/>
        
   <cmd id="newRMarkdownDoc"
        menuLabel="R _Markdown..."
        desc="Create a new R Markdown document"
        rebindable="false"/>
        
   <cmd id="newRShinyApp"
        menuLabel="Shiny _Web App..."
        desc="Create a new Shiny web application"
        rebindable="false"/>  
        
   <cmd id="newRHTMLDoc"
        menuLabel="R _HTML"
        desc="Create a new R HTML document"
        rebindable="false"/>
        
   <cmd id="newRPresentationDoc"
        menuLabel="R _Presentation"
        desc="Create a new R presentation"
        rebindable="false"/>
        
   <cmd id="newRDocumentationDoc"
        menuLabel="R _Documentation"
        desc="Create a new Rd documentation file"
        rebindable="false"/>
        
   <cmd id="openSourceDoc"
        label="Open File..."
        menuLabel="_Open File..."
        buttonLabel=""
        desc="Open an existing file"/>
        
   <cmd id="reopenSourceDocWithEncoding"
        label="Reopen Current Document with Encoding..."
        menuLabel="Reopen with _Encoding..."
        buttonLabel=""
        desc="Reopen the current file with a different encoding"/>
        
   <cmd id="saveSourceDoc"
        label="Save Current Document"
        menuLabel="_Save"
        buttonLabel=""
        desc="Save current document"/>
        
   <cmd id="saveSourceDocAs"
        label="Save Current Document As..."
        menuLabel="Save _As..."
        buttonLabel="Save as"
        desc="Save current file to a specific path" />
        
   <cmd id="saveAllSourceDocs"
        label="Save All Source Documents"
        menuLabel="Sa_ve All"
        buttonLabel=""
        desc="Save all open documents"/>
        
   <cmd id="saveSourceDocWithEncoding"
        label="Save Current Document with Encoding..."
        menuLabel="Save wit_h Encoding..."
        desc="Save the current file with a different encoding"/>
        
   <cmd id="closeSourceDoc"
        label="Close Current Document"
        menuLabel="_Close"
        enabled="false"/>
        
   <cmd id="closeAllSourceDocs"
        label="Close All Documents"
        menuLabel="C_lose All"/>
        
   <cmd id="closeOtherSourceDocs"
        label="Close Other Documents"
        menuLabel="Close All E_xcept Current"/>
        
   <cmd id="vcsFileDiff"
        label="Show Differences for File"
        menuLabel="_Diff of"
        desc="Show differences for the file"
        context="vcs"
        rebindable="false"/>
        
   <cmd id="vcsFileLog"
        label="Show Changelog for File"
        menuLabel="_Log of"
        desc="Show log of changes to the file"
        context="vcs"
        rebindable="false"/>
        
   <cmd id="vcsFileRevert"
        label="Revert Changes to File"
        menuLabel="_Revert"
        desc="Revert changes to the file"
        context="vcs"
        rebindable="false"/>
        
   <cmd id="vcsViewOnGitHub"
        label="View file on GitHub"
        menuLabel="_View FILE on GitHub"
        desc="View this file on Github"
        context="vcs"
        rebindable="false"/>
         
   <cmd id="vcsBlameOnGitHub"
        label="View 'git blame' on GitHub"
        menuLabel="_Blame FILE on GitHub"
        desc="Blame view for this file on Github"
        context="vcs"
        rebindable="false"/>
         
   <cmd id="printSourceDoc"
        menuLabel="Pr_int..."
        buttonLabel=""
        desc="Print the current file"
        rebindable="false"/>
        
   <cmd id="popoutDoc"
        label="Show Document in New Window"
        buttonLabel=""
        desc="Show in new window"/>

   <cmd id="returnDocToMain"
        label="Return Document to Main Window"
        buttonLabel=""
        desc="Return to main window"/>

   <cmd id="mru0" visible="false" rebindable="false"/>
   <cmd id="mru1" visible="false" rebindable="false"/>
   <cmd id="mru2" visible="false" rebindable="false"/>
   <cmd id="mru3" visible="false" rebindable="false"/>
   <cmd id="mru4" visible="false" rebindable="false"/>
   <cmd id="mru5" visible="false" rebindable="false"/>
   <cmd id="mru6" visible="false" rebindable="false"/>
   <cmd id="mru7" visible="false" rebindable="false"/>
   <cmd id="mru8" visible="false" rebindable="false"/>
   <cmd id="mru9" visible="false" rebindable="false"/>
   <cmd id="mru10" visible="false" rebindable="false"/>
   <cmd id="mru11" visible="false" rebindable="false"/>
   <cmd id="mru12" visible="false" rebindable="false"/>
   <cmd id="mru13" visible="false" rebindable="false"/>
   <cmd id="mru14" visible="false" rebindable="false"/>
   
   <cmd id="clearRecentFiles"
        menuLabel="Clear List"
        rebindable="false"/>

   <cmd id="newProject"
        label="Create a New Project..."
        menuLabel="New _Project..."
        buttonLabel=""
        desc="Create a project"
        windowMode="main"/>
        
   <cmd id="openProject"
        label="Open Project..."
        menuLabel="Ope_n Project..."
        buttonLabel=""
        desc="Open a project"
        windowMode="main"/>
   
   <cmd id="openProjectInNewWindow"
        label="Open Project with New R Session"
        menuLabel="Open Project in New _Session..."
        buttonLabel=""
        desc="Open project in a new R session"
        windowMode="main"/>
   
   <cmd id="shareProject"
        label="Share Project..."
        menuLabel="_Share Project..."
        buttonLabel=""
        desc="Share this project with others"
        windowMode="main"/>

   <cmd id="openSharedProject"
        label="Open Shared Project"
        menuLabel="More..."
        desc="Open a project shared with you"
        windowMode="main"/>
        
   <cmd id="projectMru0" visible="false" rebindable="false" windowMode="main"/>
   <cmd id="projectMru1" visible="false" rebindable="false" windowMode="main"/>
   <cmd id="projectMru2" visible="false" rebindable="false" windowMode="main"/>
   <cmd id="projectMru3" visible="false" rebindable="false" windowMode="main"/>
   <cmd id="projectMru4" visible="false" rebindable="false" windowMode="main"/>
   <cmd id="projectMru5" visible="false" rebindable="false" windowMode="main"/>
   <cmd id="projectMru6" visible="false" rebindable="false" windowMode="main"/>
   <cmd id="projectMru7" visible="false" rebindable="false" windowMode="main"/>
   <cmd id="projectMru8" visible="false" rebindable="false" windowMode="main"/>
   <cmd id="projectMru9" visible="false" rebindable="false" windowMode="main"/>
   <cmd id="projectMru10" visible="false" rebindable="false" windowMode="main"/>
   <cmd id="projectMru11" visible="false" rebindable="false" windowMode="main"/>
   <cmd id="projectMru12" visible="false" rebindable="false" windowMode="main"/>
   <cmd id="projectMru13" visible="false" rebindable="false" windowMode="main"/>
   <cmd id="projectMru14" visible="false" rebindable="false" windowMode="main"/>
   
   <cmd id="clearRecentProjects"
        menuLabel="Clear Project List"
        rebindable="false"
        windowMode="main"/>
        
   <cmd id="closeProject"
        label="Close Current Project"
        menuLabel="Close Projec_t"
        buttonLabel=""
        desc="Close the currently open project"
        windowMode="main"/>

   <cmd id="projectOptions"
        label="Edit Project Options..."
        menuLabel="_Project Options..."
        buttonLabel=""
        desc="Edit options for the current project"
        windowMode="main"/>

   <cmd id="projectSweaveOptions"
        menuLabel=""
        buttonLabel=""
        desc=""/>

   <cmd id="showToolbar"
        menuLabel="Show _Toolbar"
        rebindable="false"/>
        
   <cmd id="hideToolbar"
        menuLabel="Hide _Toolbar"
        rebindable="false"/>
        
   <cmd id="toggleToolbar"
        label="Toggle Visibility of Toolbar"
        menuLabel="Toggle Toolbar"/>
        
   <cmd id="zoomActualSize"
        label="Zoom to Actual Size"
        menuLabel="Actual Size"/>
        
   <cmd id="zoomIn"
        menuLabel="_Zoom In"/>
        
   <cmd id="zoomOut"
        menuLabel="Zoom O_ut"/>
        
   <cmd id="goToFileFunction"
        label="Go To File/Function..."
        menuLabel="Go To File/F_unction..."/>
        
   <cmd id="switchFocusSourceConsole"
        label="Switch Focus between Source/Console"/>
        
   <cmd id="activateSource"
        label="Move Focus to Source"
        menuLabel="Move Focus to Sou_rce"/>
        
   <cmd id="activateConsole"
        label="Move Focus to Console"
        menuLabel="Move Focus to _Console"
        windowMode="main"/>
        
   <cmd id="activateEnvironment"
        label="Show Environment Pane"
        menuLabel="Show _Environment"
        windowMode="main"/>
        
   <cmd id="activateData"
        label="Show Data Pane"
        menuLabel="Show _Data"
        windowMode="main"/>
        
   <cmd id="activateHistory"
        label="Show History Pane"
        menuLabel="Show Histor_y"
        windowMode="main"/>
        
   <cmd id="activateFiles"
        label="Show Files Pane"
        menuLabel="Show F_iles"
        windowMode="main"/>
        
   <cmd id="activatePlots"
        label="Show Plots Pane"
        menuLabel="Show Pl_ots"
        windowMode="main"/>
        
   <cmd id="activatePackages"
        label="Show Packages Pane"
        menuLabel="Show Pac_kages"
        windowMode="main"/>
        
   <cmd id="activateHelp"
        label="Show Help Pane"
        menuLabel="Move Focus to _Help"
        windowMode="main"/>
        
   <cmd id="activateVcs"
        label="Show VCS Pane"
        menuLabel="Show _Vcs"
        windowMode="main"/>
        
   <cmd id="activateBuild"
        label="Show Build Pane"
        menuLabel="Show _Build"
        windowMode="main"/>
        
   <cmd id="activateViewer"
        label="Show Viewer Pane"
        menuLabel="Show Vie_wer"
        windowMode="main"/>
        
   <cmd id="activatePresentation"
        label="Show Presentation Pane"
        menuLabel="Show Presentation"
        windowMode="main"/>
        
        
   <cmd id="layoutZoomSource"
        checkable="true"
        label="Zoom Source"
        menuLabel="Zoom Sou_rce"/>
        
   <cmd id="layoutZoomConsole"
        checkable="true"
        label="Zoom Console"
        menuLabel="Zoom _Console"
        windowMode="main"/>
        
   <cmd id="layoutZoomEnvironment"
        checkable="true"
        label="Zoom Environment"
        menuLabel="Zoom _Environment"
        windowMode="main"/>
        
   <cmd id="layoutZoomHistory"
        checkable="true"
        label="Zoom History"
        menuLabel="Zoom Histor_y"
        windowMode="main"/>
        
   <cmd id="layoutZoomFiles"
        checkable="true"
        label="Zoom Files"
        menuLabel="Zoom F_iles"
        windowMode="main"/>
        
   <cmd id="layoutZoomPlots"
        checkable="true"
        label="Zoom Plots"
        menuLabel="Zoom Pl_ots"
        windowMode="main"/>
        
   <cmd id="layoutZoomPackages"
        checkable="true"
        label="Zoom Packages"
        menuLabel="Zoom P_ackages"
        windowMode="main"/>
        
   <cmd id="layoutZoomHelp"
        checkable="true"
        label="Zoom Help"
        menuLabel="Zoom _Help"
        windowMode="main"/>
        
   <cmd id="layoutZoomVcs"
        checkable="true"
        label="Zoom VCS"
        menuLabel="Zoom VCS"
        windowMode="main"/>
        
   <cmd id="layoutZoomBuild"
        checkable="true"
        label="Zoom Build"
        menuLabel="Zoom _Build"
        windowMode="main"/>
               
   <cmd id="layoutZoomViewer"
        checkable="true"
        label="Zoom Viewer"
        menuLabel="Zoom Vie_wer"
        windowMode="main"/>
        
   <cmd id="layoutZoomCurrentPane"
        checkable="true"
        label="Toggle Zoom for Current Pane"/>

   <cmd id="layoutEndZoom"
        checkable="true"
        label="Show All Panes"
        menuLabel="_Show All Panes"
        windowMode="main"/>
        
   <cmd id="layoutConsoleOnLeft"
        checkable="true"
        label="Console on Left"
        menuLabel="Console on _Left"
        windowMode="main"/>
        
   <cmd id="layoutConsoleOnRight"
        checkable="true"
        label="Console on Right"
        menuLabel="Console on _Right"
        windowMode="main"/>
        
   <cmd id="paneLayout"
        menuLabel="Pane Layo_ut..."
        windowMode="main"/>     
        
   <cmd id="jumpTo"
        label="Jump To..."
        menuLabel="_Jump To..."
        context="editor"/>
        
   <cmd id="switchToTab"
        label="Switch to Tab..."
        menuLabel="Switch to Ta_b..."/>
        
   <cmd id="previousTab"
        label="Open Previous Tab"
        menuLabel="_Previous Tab"/>
        
   <cmd id="nextTab"
        label="Open Next Tab"
        menuLabel="_Next Tab"/>
        
   <cmd id="firstTab"
        label="Open First Tab"
        menuLabel="_First Tab"/>
        
   <cmd id="lastTab"
        label="Open Last Tab"
        menuLabel="_Last Tab"/>
        
   <cmd id="moveTabLeft"
        label="Move Tab Left"
        menuLabel="Move Tab Lef_t"/>

   <cmd id="moveTabRight"
        label="Move Tab Right"
        menuLabel="Move Tab _Right"/>
        
   <cmd id="moveTabToFirst"
        label="Move Tab to First"
        menuLabel="Move Tab to _First"/>
        
   <cmd id="moveTabToLast"
        label="Move Tab to Last"
        menuLabel="Move Tab to La_st"/>
        
   <cmd id="goToLine"
        label="Go to Line..."
        menuLabel="_Go to Line..."/>
        
   <cmd id="toggleFullScreen"
        menuLabel="Toggle Full Screen"/>

   <cmd id="findFromSelection"
        menuLabel="_Use Selection for Find"/>
        
   <cmd id="findAll"
        label="Find All"
        context="editor"/>
   
   <cmd id="findReplace"
        label="Find / Replace Text..."
        menuLabel="_Find..."/>
        
   <cmd id="findNext"
        buttonLabel="Next"
        menuLabel="Find _Next"
        desc="Find next occurrence"
        rebindable="false"/>
        
   <cmd id="findPrevious"
        buttonLabel="Prev"
        menuLabel="Find Pre_vious"
        desc="Find previous occurrence"
        rebindable="false"/>
        
   <cmd id="findSelectAll"
        buttonLabel="All"
        menuLabel="Find And Select All"
        desc="Find and select all matches"
        rebindable="false"/>
        
   <cmd id="replaceAndFind"
        buttonLabel="Replace"
        menuLabel="_Replace and Find"
        desc="Replace and find next occurrence"
        rebindable="false"/>
        
   <cmd id="findInFiles"
        menuLabel="Find _in Files..."
        windowMode="main"/>
        
   <cmd id="fold"
        menuLabel="Collapse"/>
        
   <cmd id="unfold"
        menuLabel="Expand"/>
        
   <cmd id="foldAll"
        menuLabel="Collapse All"/>
        
   <cmd id="unfoldAll"
        menuLabel="Expand All"/>
        
   <cmd id="jumpToMatching"
        label="Jump to Matching Bracket"
        menuLabel="Jump To _Matching"
        desc="Jump to matching bracket"
        context="editor"/>
        
   <cmd id="expandToMatching"
        label="Expand to Matching Bracket"
        menuLabel="Expand To _Matching"
        desc="Expand selection to matching bracket"
        context="editor"/>
        
   <cmd id="splitIntoLines"
        menuLabel="Split Into Lines"
        desc="Create a new cursor on each line in current selection"
        context="editor"/>
        
   <cmd id="executeAllCode"
        label="Run All Code in Current Source File"
        buttonLabel=""
        menuLabel="Run _All"
        desc="Run all of the code in the source file"
        context="r"/>
        
   <cmd id="executeCode"
        label="Run Current Line or Selection"
        buttonLabel="Run"
        menuLabel="Run Selected _Line(s)"
        desc="Run the current line or selection"
        context="r"/>
        
   <cmd id="executeCodeWithoutMovingCursor"
        label="Run Current Line or Selection (Without Moving Cursor)"
        buttonLabel="Run"
        menuLabel="Run _Line(s) without moving cursor"
        desc="Run the current line or selection without moving the cursor"
        context="r"/>
        
   <cmd id="executeCodeWithoutFocus"
        rebindable="false"/>
        
   <cmd id="executeToCurrentLine"
        label="Execute Code up to Current Line"
        menuLabel="Run From _Beginning To Line"
        desc="Run from the beginning of the source file up through the current line"
        context="r"/>
        
    <cmd id="executeFromCurrentLine"
        label="Execute Code From Current Line to End of Document"
        menuLabel="Run From Line to _End"
        desc="Run from the current line through the end of the source file"
        context="r"/>
        
   <cmd id="executeCurrentFunction"
        label="Run Current Function Definition"
        menuLabel="Run _Function Definition"
        desc="Run the top-level function definition, if any, that contains the cursor"
        context="r"/>
        
   <cmd id="executeCurrentSection"
        label="Execute Current Code Section"
	    buttonLabel="Run Section"
        menuLabel="Run Code _Section"
        desc="Run the code section that contains the cursor"
        context="r"/>
        
   <cmd id="executeLastCode"
        label="Re-Run Previous Code Execution"
        buttonLabel=""
        menuLabel="Re-Run _Previous"
        desc="Re-run the previous code region"
        context="r"/>
        
   <cmd id="insertChunk"
        menuLabel="_Insert Chunk"
        desc="Insert a new code chunk"
        context="editor"/>
        
   <cmd id="insertSection"
        menuLabel="_Insert Section..."
        desc="Insert a new code section"
        context="editor"/>
        
   <cmd id="executePreviousChunks"
        menuLabel="Run _Previous Chunks"
        desc="Run all previous chunks in the source file"
        context="r"/>
        
   <cmd id="executeCurrentChunk"
        menuLabel="Run _Current Chunk"
        desc="Run the current code chunk"
        context="rmarkdown"/>
        
   <cmd id="executeNextChunk"
        menuLabel="Run _Next Chunk"
        desc="Run the next code chunk"
        context="r"/>
        
   <cmd id="executeSetupChunk"
        menuLabel="Run _Setup Chunk"
        desc="Run the initial setup chunk"
        context="r"/>
        
   <cmd id ="goToHelp"
        label="Show Help for Current Function"
        menuLabel="Go To _Help"
        desc="Go to help for the currently selected function"
        context="help"/>
        
   <cmd id ="goToFunctionDefinition"
        menuLabel="_Go To Function Definition"
        desc="Go to to the definition of the currently selected function"
        context="help"/>
        
   <cmd id="codeCompletion"
        label="Retrieve Completions"
        menuLabel="Code Completion"
        desc="Show code completions at the current cursor location"
        context="editor"/>
        
   <cmd id="sourceNavigateBack"
        menuLabel="Bac_k"
        desc="Go back to the previous source location"/>
        
   <cmd id="sourceNavigateForward"
        menuLabel="For_ward"
        desc="Go forward to the next source location"/>
        
   <cmd id="extractFunction"
        menuLabel="E_xtract Function"
        desc="Turn the current selection into a function"
        context="r"/>
        
   <cmd id="extractLocalVariable"
         menuLabel="Extract _Variable"
         desc="Extract a variable out of the current selection"
         context="r"/>
         
   <cmd id="findUsages"
        menuLabel="Find _Usages"
        desc="Find source locations where this symbol is used"
        context="cpp"/>
        
   <cmd id="sourceFile"
        buttonLabel=""
        menuLabel="Source _File..."
        desc="Source the contents of an R file"
        windowMode="main"/>
        
   <cmd id="sourceActiveDocument"
        buttonLabel="Source"
        menuLabel="_Source"
        desc="Source the contents of the active document"/>
        
   <cmd id="sourceActiveDocumentWithEcho"
        buttonLabel=""
        menuLabel="Source with _Echo"
        desc="Source the contents of the active document (with echo)"/>
        
   <cmd id="commentUncomment"
        label="Comment / Uncomment Selection"
        menuLabel="_Comment/Uncomment Lines"
        desc="Comment or uncomment the current line/selection"
        context="editor"/>
        
   <cmd id="reformatCode"
        label="Reformat Current Selection"
        menuLabel="Re_format Code"
        desc="Reformat the current line/selection"
        context="editor"/>
        
   <cmd id="showDiagnosticsActiveDocument"
        label="Show Diagnostics for Current Document"
        menuLabel="Show _Diagnostics"
        desc="Show diagnostics for the active document"/>
        
   <cmd id="showDiagnosticsProject"
        label="Show Diagnostics for Current Project"
        menuLabel="Show Diagnostics (Projec_t)"
        desc="Show diagnostics for all source files in the current project"/>
        
   <cmd id="reindent"
        label="Reindent Selection"
        menuLabel="_Reindent Lines"
        desc="Reindent the current line/selection"
        context="editor"/>
        
   <cmd id="reflowComment"
        menuLabel="Reflow Co_mment"
        desc="Reflow selected comment lines so they wrap evenly"
        context="editor"/>
        
   <cmd id="renameInFile"
        label="Rename Symbol in File"
        menuLabel="Rename in File"
        desc="Rename symbol in current file"
        context="editor"/>
        
   <cmd id="insertSnippet"
        menuLabel="Insert Snippet"
        desc="Expand snippet at cursor"
        context="editor"/>
        
   <cmd id="insertRoxygenSkeleton"
        menuLabel="Insert Ro_xygen Skeleton"
        desc="Insert a roxygen comment for the current function"
        context="r"/>
        
   <cmd id="expandSelection"
        menuLabel="Expand Selection"
        desc="Expand selection"
        context="editor"/>
        
   <cmd id="shrinkSelection"
        menuLabel="Shrink Selection"
        desc="Shrink selection"
        context="editor"/>
        
   <cmd id="goToNextSection"
        label="Go to Next Section"
        buttonLabel=""
        desc="Go to next section/chunk"
        context="editor"/>
   
   <cmd id="goToPrevSection"
        label="Go to Previous Section"
        buttonLabel=""
        desc="Go to previous section/chunk"
        context="editor"/>
        
   <cmd id="goToStartOfCurrentScope"
        context="editor"/>
   
   <cmd id="goToEndOfCurrentScope"
        context="editor"/>
   
   <cmd id="expandRaggedSelection"
        label="Expand Ragged Selection"
        context="editor"/>
        
   <cmd id="markdownHelp"
        label="Open Markdown Quick Reference"
        menuLabel="_Markdown Quick Reference"
        desc="Markdown quick reference"
        context="help"/>
        
   <cmd id="openRoxygenQuickReference"
        menuLabel="_Roxygen Quick Reference"
        desc="Roxygen quick reference"/>

   <cmd id="toggleDocumentOutline"
        label="Toggle Document Outline"
        menuLabel="Show Document Outline"
        desc="Show document outline"/>

   <cmd id="usingRMarkdownHelp"
        menuLabel="_Using R Markdown"
        desc="Guide to using R Markdown"
        context="help"/>
        
    <cmd id="authoringRPresentationsHelp"
        menuLabel="_Authoring R Presentations"
        desc="Guide to using R Markdown"
        context="help"/>

    <cmd id="openRStudioIDECheatSheet"
         menuLabel="RStudio IDE Cheat Sheet"
         desc="RStudio IDE cheat sheet"
         context="help"/>

    <cmd id="openDataVisualizationCheatSheet"
         menuLabel="Data Visualization with ggplot2"
         desc="Data visualization with ggplot2"
         context="help"/>

    <cmd id="openPackageDevelopmentCheatSheet"
         menuLabel="Package Development with devtools"
         desc="Package development with devtools"
         context="help"/>

    <cmd id="openDataWranglingCheatSheet"
         menuLabel="Data Manipulation with dplyr, tidyr"
         desc="Data manipulation with dplyr and tidyr"
         context="help"/>

    <cmd id="openRMarkdownCheatSheet"
         menuLabel="R Markdown Cheat Sheet"
         desc="R Markdown cheat sheet"
         context="help"/>

    <cmd id="openRMarkdownReferenceGuide"
         menuLabel="R Markdown Reference Guide"
         desc="R Markdown reference guide"
         context="help"/>

    <cmd id="openShinyCheatSheet"
         menuLabel="Shiny Web Applications"
         desc="Shiny web applications"
         context="help"/>

   <cmd id="knitDocument"
        label="Knit Current Document"
        buttonLabel="Knit"
        menuLabel="_Knit Document"
        desc="Knit the current document"
        context="r"/>

   <cmd id="previewHTML"
        label="Preview Document as HTML"
        buttonLabel="Preview"
        menuLabel="Preview"
        desc="Show a preview of the current document as HTML"
        context="markdown"/>

   <cmd id="publishHTML"
        label="Publish to RPubs..."
        buttonLabel="Publish"
        menuLabel="P_ublish to RPubs..."
        desc="Publish the current document"/>
        
   <cmd id="compilePDF"
        label="Compile to PDF..."
        buttonLabel="Compile PDF"
        menuLabel="_Compile PDF"
        desc="Compile a PDF from the current LaTeX or Sweave document"
        context="sweave"/>

   <cmd id="compileNotebook"
        menuLabel="_Compile Notebook..."
        desc="Compile a notebook from the current R script"/>

   <cmd id="editRmdFormatOptions"
        menuLabel="_Output Options..."
        desc="Edit the R Markdown format options for the current file"
        context="rmarkdown"/>

   <cmd id="knitWithParameters"
        label="Knit with Parameters..."
        menuLabel="Knit _with Parameters..."
        desc="Knit the document with a set of custom parameters"/>

   <cmd id="synctexSearch"
        menuLabel="S_ync PDF View to Editor"
        buttonLabel=""
        desc="Sync PDF view to editor location (Ctrl+Click)"/>

   <cmd id="checkSpelling"
        menuLabel="Check _Spelling..."/>

   <cmd id="newFolder"
        label="Create a New Folder..."
        menuLabel="Folder..."
        buttonLabel="New Folder"
        desc="Create a new folder"/>
        
   <cmd id="uploadFile"
        label="Upload Files..."
        menuLabel="Upload Files..."
        buttonLabel="Upload"
        desc="Upload files to server"/>
        
   <cmd id="copyFile"
        label="Copy Files..."
        menuLabel="Copy..."
        buttonLabel="Copy"
        desc="Copy selected file or folder"
        rebindable="false"/>
        
   <cmd id="moveFiles"
        label="Move Files..."
        menuLabel="Move..."
        buttonLabel="Move"
        desc="Move selected files or folders"
        rebindable="false"/>
        
   <cmd id="exportFiles"
        label="Export Files..."
        menuLabel="Export..."
        buttonLabel="Export"
        desc="Export selected files or folders"
        rebindable="false"/>
       
   <cmd id="renameFile"
        label="Rename Current File..."
        buttonLabel="Rename"
        desc="Rename selected file or folder"
        rebindable="false"/>
        
   <cmd id="deleteFiles"
        label="Delete Files..."
        buttonLabel="Delete"
        desc="Delete selected files or folders"
        rebindable="false"/>
        
   <cmd id="refreshFiles"
        menuLabel="Refresh"
        desc="Refresh file listing"
        rebindable="false"/>
        
   <cmd id="goToWorkingDir"
        buttonLabel=""
        menuLabel="Go To Working Directory"
        desc="View the current working directory"
        rebindable="false"/>
        
   <cmd id="setAsWorkingDir"
        label="Set As Working Directory"
        rebindable="false"/>
        
   <cmd id="showFolder"
        label="Show Folder in New Window"
        visible="false"
        rebindable="false"/>
        
   <cmd id="vcsAddFiles"
        menuLabel="Add"
        buttonLabel="Add"
        desc="Add the selected files or folders"
        rebindable="false"
        context="vcs"/>
        
   <cmd id="vcsRemoveFiles"
        menuLabel="Delete"
        buttonLabel="Delete"
        desc="Delete the selected files or folders"
        rebindable="false"
        context="vcs"/>

   <!-- VCS pane -->
   <cmd id="vcsDiff"
        buttonLabel="Diff"
        menuLabel="Diff"
        desc="Diff selected file(s)"
        rebindable="false"
        context="vcs"/>
        
   <cmd id="vcsCommit"
        buttonLabel="Commit"
        menuLabel="_Commit..."
        desc="Commit pending changes"
        rebindable="false"
        context="vcs"
        windowMode="review_changes"/>

   <cmd id="vcsRevert"
        buttonLabel="Revert"
        menuLabel="Revert..."
        desc="Revert selected changes"
        rebindable="false"
        context="vcs"/>
        
   <cmd id="vcsShowHistory"
        menuLabel="_History"
        buttonLabel="History"
        desc="View history of previous commits"
        rebindable="false"
        context="vcs"
        windowMode="main"/>
        
   <cmd id="vcsRefresh"
        desc="Refresh listing"
        rebindable="false"
        context="vcs"/>
        
   <cmd id="vcsRefreshNoError"
        rebindable="false"
        context="vcs"/>
        
   <cmd id="vcsOpen"
        menuLabel="Open File"
        desc="Open selected file(s)"
        rebindable="false"
        context="vcs"/>
        
   <cmd id="vcsIgnore"
        menuLabel="Ignore..."
        buttonLabel="Ignore"
        desc="Ignore the selected files or folders"
        rebindable="false"
        context="vcs"/>
        
   <cmd id="vcsPull"
        menuLabel="_Pull Branches"
        buttonLabel="Pull"
        rebindable="false"
        context="vcs"
        windowMode="review_changes"/>
        
   <cmd id="vcsPush"
        menuLabel="P_ush Branch"
        buttonLabel="Push"
        rebindable="false"
        context="vcs"
        windowMode="review_changes"/>
        
   <cmd id="vcsCleanup"
        menuLabel="Cleanu_p"
        buttonLabel="Cleanup"
        desc="Recursively clean up the working copy (removing locks, etc)"
        rebindable="false"
        context="vcs"
        windowMode="main"/>
        
   <cmd id="vcsResolve"
        menuLabel="Resolve..."
        buttonLabel="Resolve"
        desc="Resolve conflicts in the selected files or folders"
        rebindable="false"
        context="vcs"/>
        
   <cmd id="consoleClear"
        label="Clear Console"
        menuLabel="Cle_ar Console"
        windowMode="main"/>
        
   <cmd id="interruptR"
        label="Interrupt R Session"
        buttonLabel=""
        menuLabel="_Interrupt R"
        windowMode="main"/>
        
   <cmd id="restartR"
        label="Restart R Session"
        menuLabel="_Restart R"
        desc="Restart R"
        windowMode="main"/>
        
   <cmd id="terminateR"
        label="Terminate R Session"
        menuLabel="_Terminate R..."
        desc="Forcibly terminate R session"
        context="r"
        windowMode="main"/>

   <!-- PDF Viewer -->
   <cmd id="showPdfExternal"
        label="Show PDF in External Viewer"
        menuLabel="Show PDF in External Viewer"
        desc="Show in an external PDF viewer window"/>

   <!-- HTML Preview -->
   <cmd id="openHtmlExternal"
        label="Open Page with Web Browser"
        buttonLabel=""
        desc="View the page with the system web browser"/>

   <cmd id="saveHtmlPreviewAsLocalFile"
        menuLabel="File on Local Computer..."
        desc="Download the page to a local file"
        rebindable="false"/>

   <cmd id="saveHtmlPreviewAs"
        menuLabel="File on RStudio Server..."
        buttonLabel="Save As"
        desc="Save the page to another location"
        rebindable="false"/>

   <cmd id="showHtmlPreviewLog"
        buttonLabel="Log"
        desc="Show the compilation log for this document"
        rebindable="false"/>

   <cmd id="refreshHtmlPreview"
        desc="Refresh the preview"
        rebindable="false"/>

   <!-- Presentation -->
   <cmd id="refreshPresentation"
        desc="Refresh the presentation"
        rebindable="false"
        context="presentation"/>
        
   <cmd id="presentationFullscreen"
        desc="Show presentation in full screen mode"
        rebindable="false"
        context="presentation"/>
        
   <cmd id="presentationHome"
        desc="Go to the first slide"
        rebindable="false"
        context="presentation"/>
        
   <cmd id="presentationNext"
        desc="Go to the next slide"
        rebindable="false"
        context="presentation"/>
        
   <cmd id="presentationPrev"
        desc="Go to the previous slide"
        rebindable="false"
        context="presentation"/>
        
   <cmd id="presentationEdit"
        desc="Edit this slide of the presentation"
        rebindable="false"
        context="presentation"/>

   <cmd id="presentationViewInBrowser"
        menuLabel="_View in Browser"
        desc="View the presentation in an external web browser"
        rebindable="false"
        context="presentation"/>
        
   <cmd id="presentationSaveAsStandalone"
        menuLabel="_Save As Web Page..."
        desc="Save the presentation as a standalone web page"
        rebindable="false"
        context="presentation"/>

   <cmd id="tutorialFeedback"
        desc="Provide feedback on this tutorial"
        rebindable="false"
        context="presentation"/>
        
   <cmd id="clearPresentationCache"
        menuLabel="Clear Knitr Cache..."
        desc="Clear knitr cache for this presentation"
        rebindable="false"
        context="presentation"/>
        
   <cmd id="historySendToSource"
        menuLabel="Insert into _Source"
        buttonLabel="To Source"
        desc="Insert the selected commands into the current document (Shift+Enter)"
        rebindable="false"/>
        
   <cmd id="historySendToConsole"
        menuLabel="Send to _Console"
        buttonLabel="To Console"
        desc="Send the selected commands to the R console (Enter)"
        rebindable="false"/>
        
   <cmd id="searchHistory"
        menuLabel="Search History"
        buttonLabel=""
        desc="Search history for commands matching a pattern"
        rebindable="false"/>
        
   <cmd id="loadHistory"
        menuLabel="_Load History..."
        buttonLabel=""
        desc="Load history from an existing file"
        rebindable="false"/>
        
   <cmd id="saveHistory"
        menuLabel="Sa_ve History As..."
        buttonLabel=""
        desc="Save history into a file"
        rebindable="false"/>
        
   <cmd id="historyRemoveEntries"
        menuLabel="_Remove Entries..."
        buttonLabel=""
        desc="Remove the selected history entries"
        rebindable="false"/>
        
   <cmd id="clearHistory"
        menuLabel="Clear _All..."
        buttonLabel=""
        desc="Clear all history entries"
        rebindable="false"/>
        
   <cmd id="historyDismissResults"
        label="Done"
        rebindable="false"/>
        
   <cmd id="historyShowContext"
        label="Show In Context"
        rebindable="false"/>
        
   <cmd id="historyDismissContext"
        label="&#x00AB; Back"
        rebindable="false"/>

   <cmd id="nextPlot"
        label="Show Next Plot"
        buttonLabel=""
        menuLabel="_Next Plot"
        desc="Next plot"/>
        
   <cmd id="previousPlot"
        label="Show Previous Plot"
        buttonLabel=""
        menuLabel="_Previous Plot"
        desc="Previous plot"/>
        
   <cmd id="savePlotAsImage"
        label="Save Plot As Image..."
        menuLabel="Save as _Image..."
        desc="Save the current plot as an image file"/>
        
    <cmd id="savePlotAsPdf"
         label="Save Plot as PDF..."
         menuLabel="Save as P_DF..."
         desc="Save the current plot as a PDF file"/>
         
   <cmd id="copyPlotToClipboard"
        label="Copy Current Plot to Clipboard..."
        menuLabel="Cop_y to Clipboard..."
        desc="Copy the current plot to the clipboard"/>
        
   <cmd id="zoomPlot"
        menuLabel="_Zoom Plot..."
        buttonLabel="Zoom"
        desc="View a larger version of the plot in a new window"
        rebindable="false"/>
        
   <cmd id="removePlot"
        label="Remove Current Plot..."
        buttonLabel=""
        menuLabel="_Remove Plot..."
        desc="Remove the current plot"/>
        
   <cmd id="clearPlots"
        label="Clear All Plots..."
        buttonLabel=""
        menuLabel="_Clear All..."
        desc="Clear all Plots"/>
        
   <cmd id="refreshPlot"
        label="Refresh Current Plot"
        buttonLabel=""
        menuLabel="Refresh"
        desc="Refresh current plot"/>
        
   <cmd id="showManipulator"
        label="Show Manipulator for Current Plot"
        buttonLabel=""
        menuLabel="Show _Manipulator"
        desc="Show the manipulator for this plot"/>

   <cmd id="clearWorkspace"
        menuLabel="_Clear Workspace..."
        desc="Clear objects from the workspace"
        windowMode="main"/>
        
   <cmd id="loadWorkspace"
        menuLabel="_Load Workspace..."
        windowMode="main"/>
        
   <cmd id="saveWorkspace"
        menuLabel="_Save Workspace As..."
        windowMode="main"/>
        
   <cmd id="importDatasetFromFile"
        label="Import Dataset from File..."
        menuLabel="From _Local File..."
        windowMode="main"/>
        
   <cmd id="importDatasetFromURL"
        label="Import Dataset from URL..."
        menuLabel="From _Web URL..."
        windowMode="main"/>

   <cmd id="refreshWorkspace"
        buttonLabel=""
        menuLabel="Refresh"
        desc="Refresh Workspace"/>

   <cmd id="installPackage"
        label="Install Packages..."
        menuLabel="Install Pac_kages..."
        buttonLabel="Install"
        desc="Install R packages"
        windowMode="main"/>

   <cmd id="updatePackages"
        label="Update Packages..."
        menuLabel="Check for Package _Updates..."
        buttonLabel="Update"
        desc="Check for package updates"
        windowMode="main"/>
        
   <cmd id="refreshPackages"
        label="Refresh Packages Pane"
        buttonLabel=""
        desc="Refresh Package listing"/>

   <cmd id="packratBootstrap"
   		buttonLabel="Packrat"
   		menuLabel="_Initialize Packrat..."
   		desc="Use packrat with this project"
   		rebindable="false"
   		context="packrat"/>

   <cmd id="packratClean"
         menuLabel="_Clean Unused Packages..."
         desc="Remove unused packages from your packrat library"
   		 rebindable="false"
         context="packrat"/>

   <cmd id="packratHelp"
         menuLabel="Using Packrat"
         desc="Help on using packrat with R projects"
         rebindable="false"
         context="packrat"/>
         
   <cmd id="packratOptions"
         buttonLabel="Options"
         menuLabel="Packrat _Options..."
         desc="Configure packrat options for this project"
         rebindable="false"
         context="packrat"/>
         
   <cmd id="packratBundle"
   		buttonLabel="Bundle"
   		menuLabel="Export Project _Bundle..."
   		desc="Bundle a Packrat Project"
   		rebindable="false"
   		context="packrat"/>

   <cmd id="versionControlOptions"
        menuLabel="_Options..."
        desc="Configure version control options"
        context="vcs"
        windowMode="main"/>

   <cmd id="versionControlHelp"
        menuLabel="_Using Version Control"
        desc="Help on using version control with RStudio"
        context="help"/>

   <cmd id="versionControlShowRsaKey"
        label="Show Public Key..."
        menuLabel="Show Public Key..."
        desc="Show RSA public key"
        context="vcs"/>
        
   <cmd id="versionControlProjectSetup"
        menuLabel="Project _Setup..."
        desc="Setup version control for the current project"
        context="vcs"
        windowMode="main"/>

   <cmd id="showShellDialog"
        label="Open Shell"
        menuLabel="_Shell..."
        desc="Execute shell commands(s)"
        windowMode="main"/>
        
   <cmd id="addinsMru0" visible="false" rebindable="false"/>
   <cmd id="addinsMru1" visible="false" rebindable="false"/>
   <cmd id="addinsMru2" visible="false" rebindable="false"/>
   <cmd id="addinsMru3" visible="false" rebindable="false"/>
   <cmd id="addinsMru4" visible="false" rebindable="false"/>
   <cmd id="addinsMru5" visible="false" rebindable="false"/>
   <cmd id="addinsMru6" visible="false" rebindable="false"/>
   <cmd id="addinsMru7" visible="false" rebindable="false"/>
   <cmd id="addinsMru8" visible="false" rebindable="false"/>
   <cmd id="addinsMru9" visible="false" rebindable="false"/>
   <cmd id="addinsMru10" visible="false" rebindable="false"/>
   <cmd id="addinsMru11" visible="false" rebindable="false"/>
   <cmd id="addinsMru12" visible="false" rebindable="false"/>
   <cmd id="addinsMru13" visible="false" rebindable="false"/>
   <cmd id="addinsMru14" visible="false" rebindable="false"/>
   
   <cmd id="clearAddinsMruList"
        menuLabel="_Clear Recent Addins"
        desc="Clear recently used addins"
        windowMode="main"
        rebindable="false"/>
        
   <cmd id="browseAddins"
        label="Browse Addins"
        menuLabel="_Browse Addins..."
        desc="Browse addins"
        windowMode="main"/>

   <cmd id="macPreferences"
        menuLabel="_Preferences..."/>
        
   <cmd id="showOptions"
        menuLabel="_Global Options..."
        windowMode="main"/>

   <cmd id="modifyKeyboardShortcuts"
        menuLabel="Modify Keyboard Shortcuts..."
        desc="Modify keyboard shortcuts"
        windowMode="main"/>

   <cmd id="checkForUpdates"
        label="Check for RStudio Updates"
        menuLabel="Check for _Updates"
        visible="false"/>

   <cmd id="helpUsingRStudio"
        menuLabel="RStudio _Docs"
        context="help"
        windowMode="main"/>

   <cmd id="helpKeyboardShortcuts"
        menuLabel="_Keyboard Shortcuts Help"
        context="help"/>

   <cmd id="helpBack"
        buttonLabel=""
        desc="Previous topic"
        rebindable="false"/>
        
   <cmd id="helpForward"
        buttonLabel=""
        desc="Next topic"
        rebindable="false"/>
        
   <cmd id="helpHome"
        label="Show R Help"
        menuLabel="R _Help"
        buttonLabel=""
        desc="Show R Help"
        windowMode="main"/>
        
   <cmd id="printHelp"
        buttonLabel=""
        desc="Print topic"
        rebindable="false"/>
        
   <cmd id="clearHelpHistory"
        menuLabel="Clear history"
        desc="Clear history"
        rebindable="false"/>
        
   <cmd id="helpPopout"
        label="Show Help in New Window"
        buttonLabel=""
        desc="Show in new window"
        context="help"/>
        
   <cmd id="refreshHelp"
        menuLabel="Refresh"
        desc="Refresh topic"/>

   <cmd id="viewerPopout"
        buttonLabel=""
        desc="Show in new window"/>
        
   <cmd id="viewerBack"
        buttonLabel=""
        desc="Go back"
        rebindable="false"/>
        
   <cmd id="viewerForward"
        buttonLabel=""
        desc="Go forward"
        rebindable="false"/>
        
   <cmd id="viewerZoom"
        buttonLabel="Zoom"
        desc="View a larger version in a new window"
        rebindable="false"/>
        
   <cmd id="viewerRefresh"
        desc="Refresh viewer"
        rebindable="false"/>
        
   <cmd id="viewerSaveAllAndRefresh"
        desc="Save source files and refresh viewer"
        rebindable="false"/>
        
   <cmd id="viewerStop"
        buttonLabel=""
        desc="Stop application"
        rebindable="false"/>
        
   <cmd id="viewerClear"
        buttonLabel=""
        desc="Remove current viewer item"
        rebindable="false"/>
        
   <cmd id="viewerClearAll"
        buttonLabel=""
        desc="Clear all viewer items"
        rebindable="false"/>
        
   <cmd id="viewerSaveAsImage"
        menuLabel = "Save as Image..."
        desc="Save as an image file"
        rebindable="false"/>
        
   <cmd id="viewerSaveAsWebPage"
        menuLabel="Save as Web Page..."
        desc="Save as a standalone web page"
        rebindable="false"/>
        
   <cmd id="viewerCopyToClipboard"
        menuLabel="Copy to Clipboard..."
        desc="Copy to the system clipboard"
        rebindable="false"/>
        
   <cmd id="raiseException"
        menuLabel="Raise Exception"
        rebindable="false"/>
        
   <cmd id="raiseException2"
        menuLabel="Raise Exception JS"
        rebindable="false"/>
        
   <cmd id="showWarningBar"
        menuLabel="Show warning bar"
        rebindable="false"/>
        
   <cmd id="showRequestLog"
        menuLabel="_Request Log"
        rebindable="false"/>
        
   <cmd id="diagnosticsReport"
        menuLabel="_Write Diagnostics Report"
        visible="false"/>
        
   <cmd id="logFocusedElement"
        menuLabel="Log focused element"
        rebindable="false"/>
        
   <cmd id="debugDumpContents"
        menuLabel="_Dump Editor Contents..."
        rebindable="false"/>
        
   <cmd id="debugImportDump"
        menuLabel="_Import Editor Contents..."
        rebindable="false"/>
        
   <cmd id="refreshSuperDevMode"
        rebindable="false"/>

   <cmd id="newSession"
        label="Open a New R Session"
        buttonLabel=""
        menuLabel="_New Session"
        desc="Open a new R session"
        windowMode="main"/>

   <cmd id="quitSession"
        label="Quit the Current R Session"
        menuLabel="_Quit Session..."
        buttonLabel=""
        desc="Quit the current R session"
        windowMode="main"/>

   <cmd id="showAboutDialog"
        label="About RStudio..."
        menuLabel="_About RStudio"
        rebindable="false"
        windowMode="main"/>
        
   <cmd id="showLogFiles"
        menuLabel="_Show Log Files"
        visible="false"
        rebindable="false"/>
        
   <cmd id="updateCredentials"
        menuLabel="_Update Credentials"
        rebindable="false"/>

   <cmd id="rstudioSupport"
        menuLabel="RStudio _Support"
        rebindable="false"
        windowMode="main"/>

   <cmd id="rstudioAgreement"
        menuLabel="RStudio Agreement"
        rebindable="false"/>

    <cmd id="rstudioLicense"
        menuLabel="RStudio _License"
        visible="false"
        rebindable="false"/>

   <cmd id="buildAll"
        label="Build and Reload"
        buttonLabel="Build &amp; Reload"
        menuLabel="_Build and Reload"
        desc="Build and reload the package"
        windowMode="background"/>
        context="packageDevelopment"
        windowMode="main"/>

   <cmd id="rebuildAll"
        label="Clean and Rebuild"
        menuLabel="Clean and _Rebuild"
        desc="Clean previous output and rebuild all"
        windowMode="background"/>
        context="packageDevelopment"
        windowMode="main"/>

   <cmd id="cleanAll"
        label="Clean All"
        menuLabel="_Clean All"
        buttonLabel="Clean"
        context="packageDevelopment"
        desc="Clean all"/>

   <cmd id="buildSourcePackage"
        menuLabel="Build _Source Package"
        context="packageDevelopment"
        desc="Build a source package"/>

   <cmd id="buildBinaryPackage"
        menuLabel="Build Binar_y Package"
        context="packageDevelopment"
        desc="Build a binary package"/>
        
   <cmd id="devtoolsLoadAll"
        label="Execute devtools::load_all()"
        menuLabel="_Load All"
        desc="Execute devtools::load_all"
        windowMode="background"
        context="packageDevelopment"/>

   <cmd id="roxygenizePackage"
        menuLabel="_Document"
        desc="Run roxygen2 to document this package"
        windowMode="background"
        context="packageDevelopment"/>

   <cmd id="checkPackage"
        buttonLabel="Check"
        menuLabel="_Check Package"
        desc="R CMD check"
        windowMode="background"
        context="packageDevelopment"/>

   <cmd id="testPackage"
        menuLabel="_Test Package"
        desc="Run tests for package"
        windowMode="background"/>
        context="packageDevelopment"/>

   <cmd id="stopBuild"
        menuLabel="Sto_p Build"
        desc="Stop the current build"
        context="packageDevelopment"
        windowMode="main"/>

   <cmd id="buildToolsProjectSetup"
        label="Configure Build Tools..."
        menuLabel="Configure Build _Tools..."
        desc="Configure build tools"
        context="packageDevelopment"
        windowMode="main"/>

   <cmd id="refreshEnvironment"
        menuLabel="_Refresh Environment"
        desc="Refresh the list of objects in the environment"
        context="r"/>

   <cmd id="undoDummy"
        menuLabel="_Undo"
        rebindable="false"/>
        
   <cmd id="redoDummy"
        menuLabel="Re_do"
        rebindable="false"/>
        
   <cmd id="cutDummy"
        menuLabel="Cu_t"
        rebindable="false"/>
        
   <cmd id="copyDummy"
        menuLabel="_Copy"
        rebindable="false"/>
        
   <cmd id="pasteDummy"
        menuLabel="_Paste"
        rebindable="false"/>
        
   <cmd id="yankBeforeCursor"
        label="Yank Before Cursor"
        context="editor"/>
   
   <cmd id="yankAfterCursor"
        label="Yank After Cursor"
        context="editor"/>
        
   <cmd id="pasteLastYank"
        label="Paste Last Yank"
        context="editor"/>
        
   <cmd id="maximizeConsole"
        menuLabel="Maximize Console"/>

   <cmd id="debugBreakpoint"
        label="Toggle Breakpoint on Current Line"
        menuLabel="Toggle _Breakpoint"
        desc="Set or remove a breakpoint on the current line of code"/>
        
   <cmd id="debugClearBreakpoints"
        label="Clear All Breakpoints..."
        menuLabel="Clear _All Breakpoints..."
        desc="Remove all the breakpoints in the current project"/>
        
   <cmd id="debugContinue"
        menuLabel="_Continue"
        buttonLabel="Continue"
        desc="Continue execution until the next breakpoint is encountered"
        rebindable="false"/>
        
   <cmd id="debugStop"
        menuLabel="_Stop Debugging"
        buttonLabel="Stop"
        desc="Exit debug mode"
        rebindable="false"/>
        
   <cmd id="debugStep"
        menuLabel="E_xecute Next Line"
        buttonLabel="Next"
        desc="Execute the next line of code"
        rebindable="false"/>
        
   <cmd id="debugStepInto"
        menuLabel="Step _Into Function"
        buttonLabel=""
        desc="Step into the current function call"
        rebindable="false"/>
        
   <cmd id="debugFinish"
        menuLabel="_Finish Function/Loop"
        buttonLabel=""
        desc="Execute the remainer of the current function or loop"
        rebindable="false"/>
        
   <cmd id="debugHelp"
        label="Show Guide on Debugging with RStudio"
        menuLabel="Debugging _Help"
        desc="Guide to debugging features"
        context="help"
        windowMode="main"/>

   <cmd id="errorsMessage"
        menuLabel="_Message Only"
        desc="Print the error message when an unhandled error occurs"
        checkable="true"
        rebindable="false"/>
        
   <cmd id="errorsTraceback"
        menuLabel="_Error Inspector"
        desc="Show the error inspector when an unhandled error occurs"
        checkable="true"
        rebindable="false"/>
        
   <cmd id="errorsBreak"
        menuLabel="_Break in Code"
        desc="Break when any unhandled error occurs"
        checkable="true"
        rebindable="false"/>

   <cmd id="showProfiler"
        menuLabel= "_Profiler"
        desc="Show the R code profiler"
        rebindable="false"/>
        
   <cmd id="startProfiler"
        menuLabel="Start Profiling"
        desc="Start profiling R code"
        rebindable="false"/>
        
   <cmd id="stopProfiler"
        menuLabel="Stop Profiling"
        desc="Stop profiling R code"
        rebindable="false"/>

   <cmd id="reloadShinyApp"
        label="Reload Shiny Application"
        menuLabel="Reload"
        buttonLabel=""
        desc="Reload the Shiny application"/>
        
   <cmd id="shinyRunInPane"
        label="Run Shiny Application in New Pane"
        menuLabel="Run in Viewer Pane"
        desc="Run the Shiny application in an RStudio pane"
        checkable="true"
        windowMode="background"/>
        
   <cmd id="shinyRunInViewer"
        label="Run Shiny Application in RStudio Viewer"
        menuLabel="Run in Window"
        desc="Run the Shiny application in an RStudio viewer window"
        checkable="true"
        windowMode="background"/>
        
   <cmd id="shinyRunInBrowser"
        label="Run Shiny Application in Web Browser"
        menuLabel="Run External"
        desc="Run the Shiny application in the system's default Web browser"
        checkable="true"
        windowMode="background"/>

   <cmd id="rsconnectDeploy"
        menuLabel="_Publish..."
        desc="Publish the application or document"
        visible="false"
        rebindable="false"/>
        
   <cmd id="rsconnectConfigure"
        menuLabel="_Configure Application..."
        desc="Configure the application"
        visible="false"
        rebindable="false"/>
        
   <cmd id="rsconnectManageAccounts"
        menuLabel="_Manage Accounts..."
        desc="Connect or disconnect accounts"
        visible="false"
        rebindable="false"/>

</commands>
