This issue recommends an interesting programming plugin called Rainbow Fart.
Rainbow Fart is an extension that continuously praises your writing while you are programming, and can play real people’s voice close to the meaning of the code according to the code keywords.
Installation use
- VSCode
1. Download Rainbow Fart from the VSCode extension store and install it.
2. Locate the View-Command panel in the menu bar of VSCode, or use the shortcut Ctrl + Shift + P (MacOS Command + Shift + P) to call out the command panel.
3. Enter > on the command panel. Enable Rainbow Fart and press enter.
4. A message notification should pop up. Click the Open button on the notification.
5. Click Authorize on the page that opens.
6. Enjoy programming! Try typing a keyword such as function in VSCode.
- IntelliJ IDEA
Search for Rainbow Fart installation in File-Settings-Plugins.
After installation, the Settings-Rainbow Fart can be replaced with other voice packages.
Customize your own voice package
1. Create manifest.json
First, find an empty directory and create the manifest.json file in it. The meta-information file should contain at least the following fields:
// manifest.json
{
"name": "",
// Voice package name. The value must be a lowercase letter and can contain hyphens. For example, "build-in-voice-chinese "
"version": "",
// Voice package version number, for example, "1.0.0"
"contributes": [
// ... Voice configuration, see the next step
]
}
2. Configure voice
Copies the recorded audio file (mp3) to the same directory as manifest.json, then adds configuration to the manifest.json field as contributes. Suppose we need to detect the function keyword and then play the function.mp3 audio as follows:
// manifest.json
{
"contributes": [
{
"keywords": "function",
"voices": "function.mp3"
}
]
}
At the same time, the extension also supports multiple keywords sharing a single audio, or corresponding to multiple audio and random playback. As follows:
// manifest.json
{
"contributes": [
{
"keywords": ["function", "=>"],
// Support ES6 arrow function ()=> {}
"voices": [
"function_01.mp3",
"function_02.mp3",
"function_03.mp3",
// ...
]
}
]
}
You can also use regular expressions as keywords. As follows:
// manifest.json
{
"contributes": [
{
"keywords": "function",
"regexps": "=>\\s*{",
"voices": [
"function_01.mp3",
"function_02.mp3",
"function_03.mp3",
// ...
]
}
]
}
4. Pack
Finally, select all files and compress them into zip files. Do not compress the parent directory together, all files should be in the top layer of the zip.
More cool rainbow farts
Because it is often difficult to determine the content and nature of voice packets directly from the warehouse name, it is more troublesome to synchronize the description of each warehouse here. It is therefore recommended that you refer directly to the GitHub Topic page:
https://github.com/topics/rainbow-fart
- League of Legends Voice Pack series
- Crosstalk voice package
- Pikachu Voice package
- King of Glory Voice package
- li Yunlong Voice Package
You can read more on your own.