If you're using Linux, Git Bash on Windows, or any other viable option that allows you to run bash scripts, you may use this to cleanup your source files:
*** Remember to backup your files first!!! ***
*** Remember to backup your files first!!! ***
*** Remember to backup your files first!!! ***
B4X:
#!/bin/bash
#Project Cleanup Script
# - Replaces all tabs with 4 spaces
# - Removes all trailing white space
sed -i 's/\t/ /g' *.b4a
sed -i 's/\s*$//g' *.b4a
sed -i 's/\t/ /g' *.bas
sed -i 's/\s*$//g' *.bas
Last edited: