https://github.com/g-rath/fold-call-blocks-plugin
IntelliJ plugin that lets you fold methods in Ruby & Javascript
https://github.com/g-rath/fold-call-blocks-plugin
Last synced: about 1 year ago
JSON representation
IntelliJ plugin that lets you fold methods in Ruby & Javascript
- Host: GitHub
- URL: https://github.com/g-rath/fold-call-blocks-plugin
- Owner: G-Rath
- Created: 2019-05-22T19:55:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-07T20:43:16.000Z (about 5 years ago)
- Last Synced: 2025-02-28T16:56:49.630Z (over 1 year ago)
- Language: Java
- Homepage: https://plugins.jetbrains.com/plugin/13225-fold-call-blocks
- Size: 125 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fold-call-blocks plugin
IntelliJ plugin that lets you fold call blocks like region tags,
using the first argument of said call blocks as the placeholder text:
```
const fn = (p: T) => p;
describe('top-level', () => {
describe('when passed a number', () => {
const value = 1;
it('returns a number', () => {
expect(typeof fn(value)).toBe('number');
});
it('returns the passed value', () => {
expect(fn(value)).toBe(value);
});
});
describe('when passed a boolean', () => {
const value = true;
it('returns a boolean', () => {
expect(typeof fn(value)).toBe('boolean');
});
it('returns the passed value', () => {
expect(fn(value)).toBe(value);
});
});
describe('when passed a string', () => {
const value = "hello world";
it('returns a string', () => {
expect(typeof fn(value)).toBe('string');
});
it('returns the passed value', () => {
expect(fn(value)).toBe(value);
});
});
});
```
