Random List Generator
A simple and lightweight Visual Studio Code extension that generates random number lists directly inside your code editor.
Stop manually writing numbers for practice, testing, and development. Generate them in seconds!
Features
- Custom List Size: Choose how many numbers you want to generate.
- Custom Digit Length: Generate numbers with 1 to 9 digits.
- Automatic Generation: Random numbers are generated instantly.
- Direct Editor Insertion: Generated Python lists are inserted at your cursor position.
- Input Validation: Prevents invalid inputs.
How to Use
- Open a file in Visual Studio Code.
- Press
Ctrl + Shift + P to open the Command Palette.
- Search for
Generate Random Number List.
- Enter the number of elements you want.
- Enter the number of digits for each number.
- Your generated Python list will appear at your cursor position.
Example
Input:
- Number of elements:
5
- Number of digits:
3
Output:
numbers = [124, 583, 291, 762, 438]
Note: Your generated numbers will be different each time.
Installation
Install from VS Code Marketplace
Search for Random List Generator in the VS Code Extensions Marketplace.
Install from VSIX
- Download the
.vsix package.
- Open VS Code.
- Go to Extensions.
- Click the three-dot menu.
- Select
Install from VSIX....
- Choose the downloaded package.
Technologies Used
- JavaScript
- Visual Studio Code Extension API
- Node.js
Future Improvements
- Generate unique numbers without duplicates.
- Custom minimum and maximum values.
- Custom variable names.
- Generate random strings.
- Generate Python dictionaries and tuples.
- Support multiple programming languages.
Contributing
Suggestions, bug reports, and feature requests are welcome.
If you find a bug or have an idea to improve this extension, feel free to open an issue or submit a pull request.
License
MIT License
Built for developers who want to save time and focus on writing better code.