Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/guptaroshan/mac-shortcuts-cheatsheet

Mac shortcuts and homebrew commands cheatsheet
https://github.com/guptaroshan/mac-shortcuts-cheatsheet

homebrew mac

Last synced: 14 days ago
JSON representation

Mac shortcuts and homebrew commands cheatsheet

Awesome Lists containing this project

README

        

## Mac Keyboard Shortcuts for Programmers

1. Highlight Code from the Cursor to the Start or End of the Line**

- Select Code Right of the Cursor: `⌘ + Shift + Right Arrow`
- Select Code Left of the Cursor: `⌘ + Shift + Left Arrow`

2. **Cut, Copy, and Paste**

- Cut: `⌘ + X`
- Copy: `⌘ + C`
- Paste: `⌘ + V`

3. **Save your File**

- Save: `⌘ + S`

4. **Comment Out Sections of Code**

- Comment Out Lines of Code: `⌘ + /`

5. **Shift One or More Lines Left or Right**

- Shift Right: `Tab`
- Shift Left: `Shift + Tab`

6. **Toggle Between Tabs**

- Toggle Tabs to the Right: `CTRL + Tab`
- Toggle Tabs to the Left: `CTRL + Shift + Tab`

7. **Search within a File**

- Open a Find Bar: `⌘ + F`

8. **Select Matching Instances**

- Select Matching Instances One at a Time: `⌘ + D`
- Select All Matching Instances at Once: `⌘ + Shift + L`

9. **Highlight an Entire File**

- Highlight an Entire File: `⌘ + A`

10. **Undo and Redo**

- Undo: `⌘ + Z`
- Redo: `⌘ + Shift + Z`

## Common Homebrew Commands

**Install Homebrew**

```bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```

**Install a Package**

```bash
brew install
```

**Uninstall a Package**

```bash
brew uninstall
```

**Update Homebrew**

```bash
brew update
```

**Upgrade Installed Packages**

```bash
brew upgrade
```

**List Installed Packages**

```bash
brew list
```

**Search for a Package**

```bash
brew search
```

**Show Information About a Package**

```bash
brew info
```

**Clean Up Old Versions of Packages**

```bash
brew cleanup
```