Do you avoid using spaces in folder and file names?
Updated by Tiago Araújo [SSW] 1 year ago. See history
123
<introEmbed
body={<>
It is **not** a good idea to have spaces in a folder or file name as they don't translate to URLs very well and can even cause technical problems.
Instead of using spaces, we **recommend**:
* **kebab-case** - using dashes between words
Other **not recommended** options include:
* **CamelCase** - using the first letter of each word in uppercase and the rest of the word in lowercase
* **snake_case** - using underscores between words
For further information, read [Do you know how to name documents?](/how-to-name-sharepoint-documents)
</>}
/>
This rule should apply to any file or folder that is on the web. This includes Azure DevOps Team Project names and SharePoint Pages.
- extremeemailsversion1.2.doc
- Extreme Emails version 1.2.doc
❌ Figure: Bad examples - File names have spaces or dots
- extreme-emails-v1-2.doc
- Extreme-Emails-v1-2.doc
✅ Figure: Good examples - File names have dashes instead of spaces
- sharepoint.ssw.com.au/Training/UTSNET/Pages/UTS%20NET%20Short%20Course.aspx
- fileserver/Shared%20Documents/Ignite%20Brisbane%20Talk.docx
❌ Figure: Bad examples - File names have been published to the web with spaces so the URLs look ugly and are hard to read
- sharepoint.ssw.com.au/Training/UTS-NET/Pages/UTS-NET-Short-Course.aspx
- fileserver/Shared-Documents/Ignite-Brisbane-Talk.docx"
✅ Figure: Good examples - File names have no spaces so are much easier to read
Related rules
Need help?
SSW Consulting has over 30 years of experience developing awesome software solutions.