Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jorol/perl-completions
Perl code completion snippets
https://github.com/jorol/perl-completions
perl vscode vscode-snippets
Last synced: 3 months ago
JSON representation
Perl code completion snippets
- Host: GitHub
- URL: https://github.com/jorol/perl-completions
- Owner: jorol
- License: artistic-2.0
- Created: 2021-07-20T18:06:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-15T09:44:50.000Z (almost 2 years ago)
- Last Synced: 2024-10-15T13:18:47.996Z (3 months ago)
- Topics: perl, vscode, vscode-snippets
- Homepage:
- Size: 489 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Perl Completions README
Perl Completions implements code completion for Perl5 via snippets.
All functions and their arguments were extracted from [Alphabetical Listing of Perl Functions](https://perldoc.perl.org/perlfunc#Alphabetical-Listing-of-Perl-Functions).
The flow-control keywords were extracted from [Compound Statements](https://perldoc.perl.org/perlsyn#Compound-Statements).
## Features
- Tab-completion support for Perl5 functions and their arguments.
- Tab-completion support for Perl5 flow-control keywords like `for`, `if`, `while`, ...Type the first letters of a function or flow-control keyword and auto-complete will offer some snippets:
![auto-complete snippets](./images/function.png)
Use `TAB` to replace the placeholders like `BLOCK`, `EXPR`, `LIST`, `VAR`, ...:
![tab stops](./images/function-arguments.png)
Use the keyword `init` for boilerplate of scripts, modules and tests:
![init boilerplate](./images/init.png)
![test boilerplate](./images/init-test.png)
## Configuration
Enable it with "editor.tabCompletion": "on".
## Release Notes
### 0.0.2
- Fix issue gh#1
### 0.0.1
- Initial release