Reputation: 35
I'm currently working on several different projects - some are for courses, while others are personal. For my personal projects, I prefer using Eclipse's default editor settings with slight modification. This includes the default setting of tabs being equivalent to 4 spaces, which I find aesthetically preferable.
However, I have a couple programming projects this semester for one course in which the instructor lists one formatting requirement as 2-3 spaces for tabs. While I could bite the bullet and adjust everything down to 3 spaces, I'm wondering if there's a way around that.
Is there any way to adjust Editor Preferences in Eclipse local to a package/project, while maintaining a different set of global preferences?
Upvotes: 0
Views: 91
Reputation: 111142
The general editor preferences are global to the workspace.
Some editors such as the Java editor support some options on a per-project basis but this doesn't include tab settings and the like.
I would suggest using separate workspaces for your personal projects and your course projects. You can then have different settings in each workspace. This may also help manage your projects.
You can also set up multiple profiles in the Code Formatter settings in the preferences. You could use these to format projects differently.
Upvotes: 1