Skip to content

Tabs vs. spaces #4

@thujone

Description

@thujone

You'll notice you have an issue with whitespace. You should fix this before you turn the project in. You can go into your text editor's preferences and change how tabs work. The standard indentation is 2 spaces or 4 spaces. Different filetypes might prefer different indentation (for example, .js files might be 4 whereas .html and .css might be 2). I think setting it to 4 spaces for all filetypes is fine. Right now, you're mingling real tab characters with space characters -- that's why the indentation looks all messed up. A good text editor will have a setting to convert all tabs to spaces. Another setting that might be handy is to "show invisible characters." If you set this to true, you'll be able to see all the tab characters in your files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions