Posts: 118
Threads: 10
Joined: May 2013
Nothing special, just a good
.gitignore and
.gitattributes for
PAWN developers who uses
Git SCM:
Contains OS files(Win/Linux/Mac), IDE files, build automation, source control managers and PAWN files
.gitignore:
https://gist.github.com/Yousha/9015a...1875a5f7ae0c8a
.gitattributes:
https://gist.github.com/Yousha/9ebdc...8b3d218b32cd7a
Posts: 457
Threads: 7
Joined: Jul 2017
Posts: 6,242
Threads: 8
Joined: Jun 2008
Posts: 118
Threads: 10
Joined: May 2013
Thanks for the feedback
Quote:
Originally Posted by SimonItaly
Nice.
But I like to keep the .vscode folder in the gamemode repository, just for the encoding preference in settings.json
Код:
{
"files.encoding": "windows1252",
}
|
Good point, but:
1- What if someone don't use VSCode to work with your codes? (like Notepad++ or Atom or Sublime)
Then those encode-specific data breaks in their IDE's
2- Currently the standard/default encoding is
UTF-8(in anywhere), which supports most of languages with good range of characters...
So why not simply
encode your files into the UTF-8 or Unicode and make them more cross-platform? instead of rely on the IDE's settings
3- And finally,
windows-* encoding is Windows-specific and not guaranteed to work on any other OS like Linux/OS X... so what if someone use your project in other machine? I'm sure it doesn't works fine
UTF-8 without BoM