Do you remove spaces from folders and files names?

Last updated by Tiago Araújo [SSW] over 1 year ago.See history

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?

This rule should apply to any file or folder that is on the web. This includes Azure DevOps Team Project names and SharePoint Pages.

::: greybox

  • extremeemailsversion1.2.doc
  • Extreme Emails version 1.2.doc ::: ::: bad Figure: Bad examples - File names have spaces or dots :::

::: greybox

  • extreme-emails-v1-2.doc
  • Extreme-Emails-v1-2.doc ::: ::: good Figure: Good examples - File names have dashes instead of spaces :::

::: greybox

  • fileserver/Shared%20Documents/Ignite%20Brisbane%20Talk.docx ::: ::: bad Figure: Bad examples - File names have been published to the web with spaces so the URLs look ugly and are hard to read

::: greybox

  • fileserver/Shared-Documents/Ignite-Brisbane-Talk.docx" ::: ::: good Figure: Good examples - File names have no spaces so are much easier to read :::
We open source. Powered by GitHub