All Projects → tahabasri → snippets

tahabasri / snippets

Licence: MIT License
VSCode extension which lets you manage your code snippets without quitting your editor.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to snippets

Shortcut-Menu-Bar-VSCode-Extension
Add handy buttons like beautify, show opened files, save, toggle terminal, etc to the editor menu bar in VSCode. You can also create your own buttons with custom commands. VSCode Marketplace link: https://marketplace.visualstudio.com/items?itemName=jerrygoyal.shortcut-menu-bar
Stars: ✭ 126 (+129.09%)
Mutual labels:  vscode-extension
vscode-px-to-rem
Extension that allows you to convert from px to rem, and vice versa
Stars: ✭ 36 (-34.55%)
Mutual labels:  vscode-extension
vscode-jump
🏃‍♂️ Jump/Select to the Start/End of a word in VSCode
Stars: ✭ 67 (+21.82%)
Mutual labels:  vscode-extension
vscode-fzf-quick-open
vscode extension providing quick file/folder open and searching using fzf
Stars: ✭ 42 (-23.64%)
Mutual labels:  vscode-extension
SmartContractTrading-wFabric1-4-VSCodeExt
Learn now to create a smart contract with VSCode
Stars: ✭ 27 (-50.91%)
Mutual labels:  vscode-extension
vscode-magento-wizard
Helps develop Magento 2 extensions using VSCode
Stars: ✭ 22 (-60%)
Mutual labels:  vscode-extension
markdown-live
📝 Real-time Markdown Editor & Previewer for VS Code
Stars: ✭ 18 (-67.27%)
Mutual labels:  vscode-extension
vscode-phpserver
Visual Studio Code extension to quickly serve your PHP projects :)
Stars: ✭ 62 (+12.73%)
Mutual labels:  vscode-extension
ProtheusDoc-VsCode
Repositório para implementação dinâmica do ProtheusDoc do TDS para VsCode
Stars: ✭ 19 (-65.45%)
Mutual labels:  vscode-extension
vscode-php-sniffer
Visual Studio Code extension for PHP_Codesniffer validation and formatting.
Stars: ✭ 41 (-25.45%)
Mutual labels:  vscode-extension
graphql-codegen-vscode
vscode extension which runs graphql-codegen whenever you save a query/mutation
Stars: ✭ 41 (-25.45%)
Mutual labels:  vscode-extension
todo-txt
Todo.txt syntax highlighter and helper extension for visual studio code.
Stars: ✭ 39 (-29.09%)
Mutual labels:  vscode-extension
vscode-material-product-icons
Product Icon Theme with Material Icons for VS Code
Stars: ✭ 19 (-65.45%)
Mutual labels:  vscode-extension
vscode-explicit-folding
Customize your Folding for Visual Studio Code
Stars: ✭ 46 (-16.36%)
Mutual labels:  vscode-extension
vscode-mermaid-editor
Live editor and image creator for mermaid.js in Visual Studio Code
Stars: ✭ 23 (-58.18%)
Mutual labels:  vscode-extension
vscode-gleam
📟 Gleam support for VS Code
Stars: ✭ 34 (-38.18%)
Mutual labels:  vscode-extension
componizer
vs code extension for refactoring to components
Stars: ✭ 31 (-43.64%)
Mutual labels:  vscode-extension
firecode
VS Code Firestore Rules Extension
Stars: ✭ 35 (-36.36%)
Mutual labels:  vscode-extension
30-seconds-of-code-texteditorsnippets
Files to import the 30-seconds-of-code snippets into VSCode, Atom and Sublime.
Stars: ✭ 35 (-36.36%)
Mutual labels:  snippets-collection
swdc-vscode-100-days-of-code
A VS Code extension that helps you reach your goals in completing the 100 Days of Code challenge
Stars: ✭ 45 (-18.18%)
Mutual labels:  vscode-extension

Snippets for VSCode

Code snippets are great additions to anyone who wants to save time while developing. They make it easier to enter repeating code, such as loops, complex HTML structures or reusable methods.

Visual Studio Code already has great support for snippets, including snippets appearance in IntelliSense (Ctrl+Space), tab-completion, as well as a dedicated snippet picker (Insert Snippet in the Command Palette).

This extension takes snippets to another level bringing new features which will improve managing code snippets.

Show your support

If you like my work or if it is useful to you, show your support by buying me a coffee.

Buy Me A Coffee

Table of contents

Features

Create Snippet

You can easily create a snippet from your open editor in VSCode.

Create Snippet

You can add code snippet directly from outside VSCode via your clipboard.

Create Snippet from Clipboard

If you have a command in mind, just add it manually.

Create Snippet Manually

Organize Snippets

You have the flexibility to reorder your snippets, there is no default order.

Reorder Snippets

Open Snippet

Add your snippet with a single click.

Open Snippet

You're a keyboard guru ? Open your snippets using magic key > or using IntelliSense (Ctrl+Space).

Open Snippet using Suggestions

Your snippet has variables ? No worries.

Open Snippet with Variables

Lot of snippets ? Use Command Palette to quickly search for the wanted one.

Open Snippets from Command Palette

You have some commands for terminal ? Open them directly.

Open Snippet in Terminal

Edit Snippet

Edit your snippet easily and benefit from support of VSCode built-in Snippet Syntax.

Edit Snippet

Sync your Snippets

Sync your Snippets with VSCode

Experimental feature feel free to file a bug as this is still an experimental change.

Starting with version 2.0 and up, Snippets supports backup using VSCode Settings Sync feature. This means that you will no longer need to deal with snippets location in your file local machine. Your snippets will be saved alongside your VSCode data no matter your operating system.

Check the docs to know more about Settings Sync feature and how to use it.

Note: Settings Sync is still a VSCode preview feature.

Sync your Snippets with Version Control System

A huge number of users use a VCS (e.g Git) and they may want to bind snippets to a specific project (e.g share project specific snippets with team members). This is doable using the option snippets.useWorkspaceFolder. Once this option is enabled, the extension will read/write snippets from/in .vscode/snippets.json if that file is available (extension will ask to create the file for you the first time you enable the option).

Note: Enabling the option snippets.useWorkspaceFolder will omit synchronization via Settings Sync. You'll be responsible of backing up the file .vscode/snippets.json using your favorite VSC.

Enjoy!

Installation

Open VSCode and type ctrl+P, type ext install tahabasri.snippets.

Known Issues

  • With version 1.2 and bellow, there is an issue regarding permissions when trying to change snippets location. In Windows in particular, changing location to some restricted folders (e.g C:\\) will cause the extension to rollback to default path. This is due to lack of permissions on files from within VSCode itself.

We recommend upgrading to version 2+ to fix such issues.

Permissions issue

Release Notes

2.1.0

  • Provide snippets as suggestions via IntelliSense or by typing character '>'.
  • Update vulnerable dependencies.

2.0.2

  • Provide safer logic when dealing with restore process.
  • Rename backup instead of deleting it.

2.0.0

  • Use globalState as default snippets location. No more files in filesystem !
  • Enable sync using VSCode API.
  • Polish the usability of option snippets.useWorkspaceFolder.
  • Refresh snippets across multiple open workspaces in more efficient way.
  • Add GitHub Actions to automate Code Analysis.

1.2.1

  • Fix typos in code + ESLint warnings.

1.2.0

  • Set workspace specific snippets and allows snippets to sync via git with your .vscode folder.

1.1.1

  • Make default snippets path available after fresh installation.

1.1.0

  • Sync snippets across open workspaces.
  • Enable/disable snippets syntax resolving.
  • Change default snippets location using settings property snippets.snippetsLocation.

1.0.0

Initial release of the extension.

Feedback

Credits

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].