This guide is suitable if you already have a well-developed Mendeley library that you would prefer to utilize rather than start entering references from scratch either manually or into another BibTeX based reference management program.
Mendeley reference manager brings the best functions of Endnote and Zotero and perhaps is the easiest reference management system to combine with LaTeX. If you follow these steps, after a few setting changes (and no extra downloading), you will be able to have an automatically syncing BibTeX file for your LaTeX document.
Now any references you add to your linked folder in Mendeley will automatically be added to the BibTeX file in the LaTeX folder
In terms of citation keys, Mendeley automatically generates in the format of [AuthorYear].