Tab Police
A VS Code extension that enforces a strict "no tabs" policy by preventing file saves when tab characters are detected.
Features
- Prevents saving files that contain tab characters
- Shows warning messages when tab characters are detected
- Automatically checks all open documents on startup
Installation
- Clone this repository
- Run
npm install to install dependencies
- Run
npm run compile to build the extension
- Press F5 in VS Code to start debugging and test the extension
Usage
The extension will automatically:
- Show a warning when you open a file containing tabs
- Prevent saving files that contain tabs
To fix files with tabs:
- Use VS Code's built-in "Convert Indentation to Spaces" command
- Or manually replace tab characters with spaces
- Then you'll be able to save the file
Requirements
Extension Settings
This extension contributes the following settings:
- No additional settings are required - it works out of the box!
Known Issues
None at the moment.
Release Notes
0.0.1
Initial release of Tab Police:
- Basic tab detection
- Save prevention
- Warning messages
| |