Specific plugins per workspace

前端 未结 5 1859
感情败类
感情败类 2021-01-31 11:48

I came across this post and wondered if there is a way to activate only a few of all of my installed plugins depending on the workspace I currently work in.

For example

5条回答
  •  忘掉有多难
    2021-01-31 12:23

    You can use a different configuration folder for each Eclipse instance using the -configuration option when starting Eclipse.

    On Windows, I would use a batch file (e.g. run-eclipse.cmd) which looks a bit like this (a bit different on Unix, more complex on OS X because of the app packaging):

    eclipsec.exe -clean -configuration configs/%1/configuration
    

    Execute it with your environment ID (e.g. run-eclipse.cmd java). I use eclipsec because I need the console output, but you can use the plain eclipse.exe executable. The -clean is not mandatory either.

    Under my Eclipse installation folder, I will have a configs folder and under this folder I will have multiple configurations. Each config folder can have its' own plugins and folders. AFAIK, if you install plugins they will be installed in your configuration folder and not your main installation folder.

    The structure you get is like this:

    • Eclipse Folder
      • plugins
      • features
      • configs
        • java
          • plugins
          • features
          • configuration

提交回复
热议问题