Skip to content

Instantly share code, notes, and snippets.

View SJROHRXD's full-sized avatar
🦆
ask me about the DOM

Sarah Jeanne Rohr SJROHRXD

🦆
ask me about the DOM
View GitHub Profile
@SJROHRXD
SJROHRXD / Chrome-Bookmarks-JSON-File-Locations.md
Created August 20, 2023 06:09
Chrome Bookmarks JSON File Locations

Directly access Chrome Bookmarks JSON files:

Windows - C:\Users\ USER \AppData\Local\Google\Chrome\User Data\Default\Bookmarks

Linux - /home/ USER /.config/google-chrome/Default/Bookmarks

Mac - /Users/ USER /Library/Application Support/Google/Chrome/Default/Bookmarks

// location may vary but I believe in you

\ Windows is so silly w these backslashes

@SJROHRXD
SJROHRXD / improveMyMacros.md
Last active July 20, 2023 03:16
Improve Macros - TODO

Keyboard Macros for VS Code User Implemented Shortcuts

I have created (2) keyboard shortcuts in VS Code.

The first shortcut moves focus / targets the last active window in the editor:

View: Focus Active Editor Group - This might not even be the best option 😅

The second shortcut moves focus / targets the open terminal:

@SJROHRXD
SJROHRXD / GitBash.md
Last active August 20, 2023 06:16
Git Bash Commands +

Git Bash Commands, Etc.

Listing Repo NPM Packages

npm list --depth=0

Listing Repo NPM Packages + Copy to Clipboard

echo "$(npm list --depth=0)" | clip
@SJROHRXD
SJROHRXD / VSCTrix2.md
Last active April 19, 2023 05:20
💾 VS Code Trix - Bash Script (Windows) to Save Settings (Settings, Keybindings, Extensions List)

VS Code Trix - Bash Script (Windows) to Save Settings (Settings, Keybindings, Extensions List)

Path to the VS Code settings directory 📂

VSCODE_SETTINGS_DIR="$APPDATA/Code/User"

Create backup directory if it doesn't exist 🔍

BACKUP_DIR="$HOME/vscode_settings_backup"

if [ ! -d "$BACKUP_DIR" ]; then

@SJROHRXD
SJROHRXD / VSCTrix1.md
Last active April 19, 2023 05:03
🪀VS Code Trix - viewing extensions as a list + piping them to clipboard (Mac, Windows, GitBash)

VS Code Trix - viewing extensions as a list + piping them to clipboard (Mac, Windows, GitBash)

Command to view a list of extensions in VS Code:

Windows 🐚

  code --list-extensions

Mac 🧶