How to avoid DOS line endings in Windows tools
Developer Editors
If you are going to work on the viewer code you need to conform to the Coding Standard. Your editor must be able to do two things
- Specify the type of line ending to use: LF (or unix) format.
- A tab must generate 4 spaces.
Windows
Notepad++ (download Notepad++)
- Line ending
- You should not need to specify the line ending for an existing file but for a new file you will want to set Edit->EOL Conversion->UNIX Format
- Tab spacing
- Go to Settings->Preferences->Language Menu/Tab Settings.
- Click on [Default]
- Change Tab Size to 4
- Check the box Replace by space
- Note: if you are going to be using the program as a general editor you can customize which file types this tab to space conversion applies to.