Skip to content

Code Snippets ​

BShellX Pro provides a code snippet library for managing and reusing common commands.

What is Code Snippets ​

Code snippets allow you to:

  • Save frequently used commands
  • Organize commands by category
  • Quick search and execute
  • Sync across devices

Managing Snippets ​

Create Snippet ​

To create a snippet:

  1. Open Code Snippets panel
  2. Click "New Snippet"
  3. Enter command content
  4. Add description
  5. Choose category

Edit Snippet ​

To edit a snippet:

  1. Find the snippet
  2. Click "Edit"
  3. Modify content
  4. Save changes

Delete Snippet ​

To delete a snippet:

  1. Find the snippet
  2. Click "Delete"
  3. Confirm deletion

Snippet Organization ​

Categories ​

Organize snippets by:

  • Function (deployment, monitoring, etc.)
  • Environment (dev, prod, test)
  • Custom categories

Tags ​

Add tags to snippets:

  • Multiple tags per snippet
  • Quick filtering
  • Search by tags

Find snippets quickly:

  • Search by keyword
  • Filter by category
  • Filter by tags

Using Snippets ​

Copy to Clipboard ​

Click snippet to copy:

  • Command copied to clipboard
  • Paste in terminal
  • Execute manually

Send to Terminal ​

Send snippet directly:

  • Click "Send to Terminal"
  • Command appears in terminal
  • Ready to execute

Quick Execute ​

For quick execution:

  • Double-click snippet
  • Command executes immediately
  • See output in terminal

Cloud Sync ​

Pro users can sync snippets:

  • Sync across devices
  • Backup snippets
  • Restore on new devices

See Cloud Sync for details.

Best Practices ​

  • Keep snippets organized
  • Add clear descriptions
  • Use meaningful categories
  • Regularly update snippets

BShellX Pro Documentation