Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kak-tus/perltidy-more
Perltidy extension for Visual Studio Code
https://github.com/kak-tus/perltidy-more
perl vscode-extension
Last synced: 3 months ago
JSON representation
Perltidy extension for Visual Studio Code
- Host: GitHub
- URL: https://github.com/kak-tus/perltidy-more
- Owner: kak-tus
- License: mit
- Created: 2017-04-18T21:19:02.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-07-25T19:24:07.000Z (over 2 years ago)
- Last Synced: 2023-04-05T04:41:30.325Z (almost 2 years ago)
- Topics: perl, vscode-extension
- Language: TypeScript
- Homepage:
- Size: 131 KB
- Stars: 12
- Watchers: 2
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# perltidy-more
Perltidy extension for Visual Studio Code.
More perltidy, then pertidy extension by sfodje.
This perltidy has some extended features:
- It has [github repository](https://github.com/kak-tus/perltidy-more) (now sfodje perltidy has [repository](https://github.com/sfodje/perltidy) too).
- It can format large perl files (in my case sfodje extension had 10 or 20 KB file limit. I don't know why it happened).
- It can format selected text.
- Partial support for virtual filesystems like SSH FS (without support of .perltidyrc from virtual fs).
- Option to enable perltidy only with existing .perltidyrc in project.
- FormatOnType support (you can enable it in settings).
- Support for relative path to perltidy binary. Set perltidy-more.executable to relative path and it will be search it in workspace folder.Alternatives
1. [sfodje perltidy](https://github.com/sfodje/perltidy).
2. [henriiik intelligence extension](https://github.com/henriiik/vscode-perl) (it can format, but I couldn't get it work).## Attention
VS Code can have multiple formatting extensions for same language installed, but only one of them (selected by some magical "score") will be using for formatting by formatting key.
If this extension does not work:
1. Try to use it with command (F1 or Ctrl+Shift+P: perltidy).
2. Try to disable other perl formatting extensions.
3. Try to install perltidy binary from your OS repository.## FAQ
### 1. Q: I'd like to use .perltidyrc specific to different projects.
A: Use "perltidy-more.profile" option and set it to ".../.perltidyrc". Three dots is perltidy specific option to indicates that the file should be searched for starting in the current directory and working upwards. This makes it easier to have multiple projects each with their own .perltidyrc in their root directories.
### 2. Q: I'd like to run perltidy in docker container.
A: Use shell script like this and set it as perltidy-more.executable in options
```
#!/usr/bin/env sh
exec docker run --rm -i -v "$PWD":/app -w /app avastsoftware/perltidy "$@"
```