Friendly-snippets
Friendly-snippets is a comprehensive collection of pre-configured snippets for various programming languages that helps speed up coding by providing ready-to-use code templates.
What Problem Does It Solve?
Writing repetitive code patterns can be:
- Time-consuming
- Error-prone
- Boring
- Inconsistent across projects
- Hard to remember
How It Improves Productivity
-
Ready-to-Use Snippets:
- Pre-configured for many languages
- High-quality templates
- Consistent coding style
- Time-saving patterns
-
Easy Integration:
- Works with nvim-cmp
- Simple to extend
- Customizable
- Language-specific snippets
-
Code Quality:
- Best practices included
- Standard patterns
- Common boilerplate
- Documentation templates
How to Use
Basic Usage
- Type the snippet trigger
- Press
<Tab>
to expand - Use
<C-k>
to go to next placeholder - Use
<C-j>
to go to previous placeholder
Available Snippets
- Function definitions
- Class templates
- Import statements
- Documentation blocks
- Common patterns
Customization
- Add custom snippets
- Modify existing ones
- Create language-specific snippets
- Share snippets with team