eclipse在高分屏下的DPI调整方案

最近打算把手头的一个WIN10平板装起来看代码。可惜平板是高分屏2048x1536,于是按钮小到无法点击。本以为可以作罢,按平常的习惯搭了梯子出门看一圈,突然发现有解决办法,很简单。如下操作:

步骤:
1)First you need to add this registry key
注册表新建这个DWORD键值,设置为1
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\PreferExternalManifest (DWORD) to 1

2)Next, a manifest file with the same name as the executable must be present in the same folder as the executable. The file is named eclipse.exe.manifest and consists of:
第二步:把下面的内容保存为eclipse.exe.manifest放到eclipse.exe同目录
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
    <description>eclipse</description>
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
        <security>
            <requestedPrivileges>
                <requestedExecutionLevel xmlns:ms_asmv3="urn:schemas-microsoft-com:asm.v3"
                               level="asInvoker"
                               ms_asmv3:uiAccess="false">
                </requestedExecutionLevel>
            </requestedPrivileges>
        </security>
    </trustInfo>
    <asmv3:application>
        <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
            <ms_windowsSettings:dpiAware xmlns:ms_windowsSettings="http://schemas.microsoft.com/SMI/2005/WindowsSettings">false</ms_windowsSettings:dpiAware>
        </asmv3:windowsSettings>
    </asmv3:application>
</assembly>

然后平板就可以继续玩eclipse啦。。。

另也有一个更方便的工具来提取manifest,我已上传
http://download.csdn.net/detail/applebomb/9715106

还有方式2来解决,更简单:
就是在ECLIPSE运行快捷方式上右键属性->兼容模式->以XP SP3的模式运行(但是这样一来只能使用32位的JDK模式了,如果是8G的平板建议用manifest模式)。
该方式在mars版本尚可用,但是到了neon版本,只能使用方式1了。

截图上面的是调整后的大小,下面是未调整的大小。你可以发现,在未调整时,工具条根本就没法点。调整后虽然模糊点,但总算能够点的到了


  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值