MATLAB Link for Code Composer Studio Development Tools    
save

Save files and projects in CCS IDE

Syntax

Description

save(cc,'filename','type') save the file in CCS IDE identified by filename of type 'type'. type identifies the type of file to save, either project files when you use 'project' for type, or text files when you use 'text' for the type option. To save a specific file in CCS IDE, filename must match the name of the file to save exactly. If you replace filename with 'all', save writes every open file whose type matches the type option. File types recognized by save include these extensions.

type String
Affected files
'project'
Project files with the .pjt extension.
'text'
All files with these extensions -- .a*, .c, .cc, .ccx, .cdb, .cmd, .cpp, .lib, .o*, .rcp, and .s*. Note that 'text' does not save .cfg files.

When you replace filename with the null entry [], save writes to storage the current active file window in CCS IDE, or the active project when you specify 'project' for the type option.

Examples

To clarify the different save options, here are six commands that save open files or projects in CCS IDE.

Command
Result
save(cc,'all','project')
Save all open projects in CCS IDE.
save(cc,'my.pjt','project')
Save the project my.pjt.
save(cc,[],project')
Save the active project.
save(cc,'all','text')
Save all open text files. This includes source file, libraries, command files, and others.
save(cc,'my_source.cpp','text')
Save the text file my_source.cpp.
save(cc,[],'text')
Save the active file window.

See Also

add, cd, close, open


  run set