Generate SQL Create script and primary key columns

I am using the Create Script feature and I notice that primary key columns are generated as NOT NULL, but the key icons do not appear next to the columns. Is this intentional? Do I need to generate a create script on the corresponding index to get these to show up, or is this a bug?

Hi Andy,

Could you please clarify what database you use and how you connect to it? May I get the script? Can you show on a screenshot where you expect to see the primary key icon?