4 Handy Shortcuts

4.1 Getting to your folder in the terminal

You can use the cd command, or:

   Windows

Method 1: Shift + Right-click
* Open Windows File Explorer and navigate to the folder you want to open in the terminal.
* Hold down the Shift key and right-click on the folder (or an empty area within the folder).
* Select “Open in Terminal” from the context menu.

Method 2: Typing “cmd” in the address bar
* Open Windows File Explorer and navigate to the folder.
* Click in the address bar at the top of the window.
* Type cmd and press Enter.

   Mac
  • Locate and open the folder you want to use in Finder.
  • If you don’t see the path bar at the bottom of the Finder window, go to View > Show Path Bar.
  • In the path bar, right-click (or Control-click) the folder.
  • Select Open in Terminal

4.2 Opening your folder from the terminal

If you are working in the Terminal and want to open your folder in your file explorer, type open . (Mac) or start . (Windows)

4.3 Commenting and uncommenting in RStudio

To quickly comment or uncomment lines in RStudio, use Command + Shift + C (Mac) or Ctrl + Shift + C (Windows/Linux).