Copy directory in server to directory in local machine
I got it to work with the help of @klanomath. It never occurred to me that the command is supposed to be executed without connection to the host@IP:. I just added -r and /*file. to the command to get all files in one instance.

scp -r host@IP:/home/username/chapter2/*.c ~/Documents/Projects