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:
- Open Code Snippets panel
- Click "New Snippet"
- Enter command content
- Add description
- Choose category
Edit Snippet
To edit a snippet:
- Find the snippet
- Click "Edit"
- Modify content
- Save changes
Delete Snippet
To delete a snippet:
- Find the snippet
- Click "Delete"
- 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
Search
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
Related Documentation
- SSH Connection - SSH terminal features
- Cloud Sync - Sync snippets across devices