对于所有新项目导入,如何为源永久启用自动滚动? [英] How to enable autoscroll to/from source permanently for all new project imports?

查看:193
本文介绍了对于所有新项目导入,如何为源永久启用自动滚动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢自动滚动到源/来源功能。每次导入新项目时,我都会启用它们。但是,每次进行新导入时都必须这样做会很烦人。我用Google搜索,但无法弄清楚如何。 那么,你知道如何永久启用它们吗?非常感谢你。

I like the Autoscroll to/from source features. Every time I import a new project, I will always enable them. However, it gets annoying when you have to do that every time for a new import. I googled, but couldn't find out how. So, do you know how to enable them permanently? Thank you very much.

推荐答案

这是目前无法实现的。

自动滚动设置是特定于项目的,存储在 .idea / workspace.xml 文件中:

The auto-scroll settings are Project specific and are stored in the .idea/workspace.xml file :

访问默认项目设置和结构 记录如何更改新项目使用的默认设置。不幸的是,自动滚动设置不属于可以在那里设置的设置。

Accessing Default Project Settings and Structure documents how to change the default settings used by new projects. Unfortunately, the autoscroll settings are not amongst the ones that can be set there.

更多的挖掘表明默认项目由表示。 IntelliJIdea12 \ config \options \ project.default.xml ,它没有指定autoScroll的设置。 (出于好奇,我尝试在该文件中复制以下内容:

A bit more digging shows that the default project is represented by .IntelliJIdea12\config\options\project.default.xml and it does not have settings for autoScroll specified. (Out of curiosity, I tried copying in the following in that file :

  <component name="ProjectView">
    <navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
      <flattenPackages />
      <showMembers />
      <showModules />
      <showLibraryContents />
      <hideEmptyPackages />
      <abbreviatePackageNames />
      <autoscrollToSource ProjectPane="true" />
      <autoscrollFromSource ProjectPane="true" />
      <sortByType />
    </navigator>
  </component>

但新项目没有提到这一点。

But that was not picked up by new projects. )

这篇关于对于所有新项目导入,如何为源永久启用自动滚动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆