Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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