IntelliJ IDEA,WebStorm,PyCharm 2017+快取位置修改
阿新 • • 發佈:2018-12-23
注:此方法適用於JetBrains的系列產品,包括IntelliJ IDEA,WebStrom,PyCharm等。
(1)開啟安裝路徑下的屬性檔案
D:\Developtool\IntelliJ_IDEA_2016\bin\idea.properties
(2)修改屬性配置
用notepad++等文字編輯器修改idea.properties檔案,找到配置資訊中有${user.home}的欄位,如idea.config.path,idea.system.path:
1 # Use ${idea.home.path} macro to specify location relative to IDE installation home. 2 # Use ${xxx} where xxx is any Java property (including defined in previous lines of this file) to refer to its value. 3 # Note for Windows users: please make sure you're using forward slashes (e.g. c:/idea/system). 4 5 #--------------------------------------------------------------------- 6 # Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes. 7 #--------------------------------------------------------------------- 8 # idea.config.path=${user.home}/.IntelliJIdea/config 9 idea.config.path=E:/Personal/.IntelliJIdea/config 10 11 #--------------------------------------------------------------------- 12 # Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes. 13 #--------------------------------------------------------------------- 14 # idea.system.path=${user.home}/.IntelliJIdea/system 15 idea.system.path=E:/Personal/.IntelliJIdea/system 16 17 #--------------------------------------------------------------------- 18 # Uncomment this option if you want to customize path to user installed plugins folder. Make sure you're using forward slashes. 19 #--------------------------------------------------------------------- 20 # idea.plugins.path=${idea.config.path}/plugins 21 idea.plugins.path=${idea.config.path}/plugins 22 23 #--------------------------------------------------------------------- 24 # Uncomment this option if you want to customize path to IDE logs folder. Make sure you're using forward slashes. 25 #--------------------------------------------------------------------- 26 # idea.log.path=${idea.system.path}/log 27 idea.log.path=${idea.system.path}/log 28 29 #--------------------------------------------------------------------- 30 # Maximum file size (kilobytes) IDE should provide code assistance for. 31 # The larger file is the slower its editor works and higher overall system memory requirements are 32 # if code assistance is enabled. Remove this property or set to very large number if you need 33 # code assistance for any files available regardless their size. 34 #--------------------------------------------------------------------- 35 idea.max.intellisense.filesize=2500 36 37 #--------------------------------------------------------------------- 38 # This option controls console cyclic buffer: keeps the console output size not higher than the specified buffer size (Kb). 39 # Older lines are deleted. In order to disable cycle buffer use idea.cycle.buffer.size=disabled 40 #--------------------------------------------------------------------- 41 idea.cycle.buffer.size=1024 42 43 #--------------------------------------------------------------------- 44 # Configure if a special launcher should be used when running processes from within IDE. 45 # Using Launcher enables "soft exit" and "thread dump" features 46 #--------------------------------------------------------------------- 47 idea.no.launcher=false 48 49 #--------------------------------------------------------------------- 50 # To avoid too long classpath 51 #--------------------------------------------------------------------- 52 idea.dynamic.classpath=false 53 54 #--------------------------------------------------------------------- 55 # Uncomment this property to prevent IDE from throwing ProcessCanceledException when user activity 56 # detected. This option is only useful for plugin developers, while debugging PSI related activities 57 # performed in background error analysis thread. 58 # DO NOT UNCOMMENT THIS UNLESS YOU'RE DEBUGGING IDE ITSELF. Significant slowdowns and lockups will happen otherwise. 59 #--------------------------------------------------------------------- 60 #idea.ProcessCanceledException=disabled 61 62 #--------------------------------------------------------------------- 63 # There are two possible values of idea.popup.weight property: "heavy" and "medium". 64 # If you have WM configured as "Focus follows mouse with Auto Raise" then you have to 65 # set this property to "medium". It prevents problems with popup menus on some 66 # configurations. 67 #--------------------------------------------------------------------- 68 idea.popup.weight=heavy 69 70 #--------------------------------------------------------------------- 71 # Use default anti-aliasing in system, i.e. override value of "Settings|Editor|Appearance|Use anti-aliased font" 72 # option. May be useful when using Windows Remote Desktop Connection for instance. 73 #--------------------------------------------------------------------- 74 idea.use.default.antialiasing.in.editor=false 75 76 #--------------------------------------------------------------------- 77 # Disabling this property may lead to visual glitches like blinking and fail to repaint 78 # on certain display adapter cards. 79 #--------------------------------------------------------------------- 80 sun.java2d.noddraw=true 81 82 #--------------------------------------------------------------------- 83 # Removing this property may lead to editor performance degradation under Windows. 84 #--------------------------------------------------------------------- 85 sun.java2d.d3d=false 86 87 #--------------------------------------------------------------------- 88 # Workaround for slow scrolling in JDK6 89 #--------------------------------------------------------------------- 90 swing.bufferPerWindow=false 91 92 #--------------------------------------------------------------------- 93 # Removing this property may lead to editor performance degradation under X Window. 94 #--------------------------------------------------------------------- 95 sun.java2d.pmoffscreen=false 96 97 #--------------------------------------------------------------------- 98 # Workaround to avoid long hangs while accessing clipboard under Mac OS X. 99 #--------------------------------------------------------------------- 100 #ide.mac.useNativeClipboard=True 101 102 #--------------------------------------------------------------------- 103 # Maximum size (kilobytes) IDEA will load for showing past file contents - 104 # in Show Diff or when calculating Digest Diff 105 #--------------------------------------------------------------------- 106 #idea.max.vcs.loaded.size.kb=20480 107 108 #--------------------------------------------------------------------- 109 # IDEA file chooser peeks inside directories to detect whether they contain a valid project 110 # (to mark such directories with a corresponding icon). 111 # Uncommenting the option prevents this behavior outside of user home directory. 112 #--------------------------------------------------------------------- 113 #idea.chooser.lookup.for.project.dirs=false 114 115 #--------------------------------------------------------------------- 116 # IDEA can copy library .jar files to prevent their locking. 117 # By default this behavior is enabled on Windows and disabled on other platforms. 118 # Uncomment this property to override. 119 #--------------------------------------------------------------------- 120 # idea.jars.nocopy=false 121 122 #--------------------------------------------------------------------- 123 # The VM option value to be used to start a JVM in debug mode. 124 # Some JREs define it in a different way (-XXdebug in Oracle VM) 125 #--------------------------------------------------------------------- 126 idea.xdebug.key=-Xdebug 127 128 #--------------------------------------------------------------------- 129 # Switch into JMX 1.0 compatibility mode. 130 # Uncomment this option to be able to run IDEA using J2SDK 1.5+ while working 131 # with application servers (like WebLogic) running 1.4. 132 #--------------------------------------------------------------------- 133 #jmx.serial.form=1.0 134 135 #----------------------------------------------------------------------- 136 # Change to 'enabled' if you want to receive instant visual notifications 137 # about fatal errors that happen to an IDE or plugins installed. 138 #----------------------------------------------------------------------- 139 idea.fatal.error.notification=disabled
(3)重啟IDE,如果指定目錄下生成.IntelliJIdea資料夾,則說明修改成功。