You will want to automatically download your credit card transactions - this is easy within QB's. If you have a common issuer of your credit card they will show up when you create the credit card account.
After you download the credit card transactions, it is the same as if you were writing checks. Set the correct account (expense/capitalization) and save the transaction.
Let us know if you have more questions, please.