---
title: "Ubuntu下Eclipse热键Ctrl+Alt+Up无效的解决"
author: "rox"
date: "2011-01-15T00:57:46Z"
tags: ["Eclipse", "Netbeans", "Spring", "UP", "Ubuntu"]
categories: ["操作系统"]
slug: "ubuntu-eclipse-ctrl-alt-up"
draft: false
lastmod: "2011-01-15T00:57:46Z"
id: 875078
url: "https://rox.iteye.com/blog/875078"
---

Ubuntu下一直用NetBeans开发，改了热键为Eclipse的，复制行不管用，一直认为是NetBeans兼容性的问题。

今天又安装了Spring STS，居然也不行，肯定有问题。

老外做了回答（实际上另一个09年就说了，不过博客怎么也访问不了，估计停了）

- **get duplicate lines working in ubuntu**

[http://acme-tech.net/blog/2010/10/07/get-duplicate-lines-working-in-ubuntu/](http://acme-tech.net/blog/2010/10/07/get-duplicate-lines-working-in-ubuntu/)

不过，这个访问也有点难度，就把原文贴出来。

写道

the default keyboard shortcut for duplicating lines (alt + ctrl + up/down) does not work. this is caused by the system using the same shortcuts to move to a virtual workspace above and below. go to system &gt; preferences &gt; keyboard shortcuts and assign a different key combo for the following two actions: switch to workspace up switch to workspace down duplicate lines works again.

中文Ubuntu的“键盘快捷键”里死活找不到些，到键盘设置里找了个遍，也没发现。

偶然又找到这篇文章。

- **ubuntu下win键的使用**

[http://hi.baidu.com/bruceheee/blog/item/a4aa65df6628a55a95ee37d6.html](http://hi.baidu.com/bruceheee/blog/item/a4aa65df6628a55a95ee37d6.html)

根据他的描述，这个配置是在

应用程序 &gt; 系统工具 &gt; 配置编辑器

或者直接运行 gconf-editor

就会出现类似Windows注册表的界面。

查找/apps/metacity/global\_keybindings/ 目录，修改

switch\_to\_workspace\_down 和switch\_to\_workspace\_up 的值为disabled即可。

 

年纪大了，变笨了，这么久才发现问题，解决也耗了不少脑细胞，悲催。