简体   繁体   中英

eclipse c++ exclude multiple files from build at once?

Instead of right clicking each one individually, ticking 'exclude from build', etc And how to include them back en masse ?

Thanks

Highlight one of your file's by left clicking it. Then, to select multiple files, hold down shift or control then left click on another file. Shift will select all files between what you selected. Control will add just the one. Then, let go of shift (or control), then right click one of the selected files, then chose "Resource Configurations > Exclude from build...". It will exclude them all. Similarly, repeat the step to add them back.

Create a new folder inside Eclipse (let's name it excluded ). Right-click on excluded and use Resource Configuration->Exclude From Build... , check which builds you want it excluded from and dismiss the dialog. Now you can disable files by selecting a group of files and dragging them to this folder. Include them back in the build by dragging them from excluded back to their original location. Note that once marked as excluded the folder appears near the bottom with a new icon with a slash through it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM