Other

Can you use a hyphen in file names?

Can you use a hyphen in file names?

Don’t start or end your filename with a space, period, hyphen, or underline. Keep your filenames to a reasonable length and be sure they are under 31 characters. Avoid using spaces and underscores; use a hyphen instead. This will also improve your search engine rankings.

Should you use underscore in file names?

Avoid using spaces and underscores in file names.

Should I use underscore or hyphen?

Google recommends using hyphens instead of underscores in your URLs. This is because using hyphens instead of underscores makes it easier for Google’s web crawler to compute the information that your website has and create consistent results.

Why are there no underscores in file names?

Some applications and computer scripts may not recognize spaces or will process your files differently when using spaces. A best practice is to replace spaces in file names with an underline (_) or hyphen (-). This alteration can cause confusion in identifying the actual file name.

When to use hyphens instead of underscores?

In general, separate words with hyphens, not underscores. Use only standard ASCII alphanumeric characters in file and directory names. If you’re adding to a directory where everything else already uses underscores, and it’s not feasible to change everything to hyphens, it’s okay to use underscores to stay consistent.

Why do people use hyphens to write file names?

It’s like Bob Ross playing Thomas Kinkade in one-on-one painting. A world where people use hyphens & underscores to write file names is a world where user-experience thrives. This is a small, tiny, miniscule thing, but often the game is won in the trenches of minutia. Jump in the bunker, fire away, and get the victory!

When do you put an underscore after the name of a file?

It is common in computer programming to use an underscore just before the name of a file intended for internal use within a computer library, or for a header file. Ruby, Perl, and Windows PowerShell also use underscores after certain characters to create a special variable

When do you use underscores instead of dashes?

Consider substituting an underline (_) or dash (-) where you would normally use spaces.” That would leave many thinking underscores are the ticket to the promised land, but hold up. If you want to use underscores consider the following: Will you ever use the file on the web and/or your own blog?