It scans the files as it imports them to determine whether they are COBOL programs or copybooks, and sets directives for each imported file according to the determined file type, taking into account any relevant IDE options.
This is how you use the Create Projects from Existing Code wizard to create a Visual Studio project from existing COBOL sources: