2010-08-12 34 views
12

Eclipse kullanıcı tercihlerini nerede saklıyor? Özellikle klavye bağlamaları?Eclipse, klavye bağlantılarını nerede saklıyor?

+0

http://stackoverflow.com/questions/3462216/aptana-keyboard-shortcut-for-html-js-jquery-preview-within-the-ide (yanıtsız) – ina

+0

Bence OPT nerede olduğunu soruyor ayarlar kendilerini saklar yani. ~/.eclipse ', '$ project_path/.settings' vb. içinde. – prodigitalson

cevap

25

Eclipse'i, (varsayılan yapılandırmada farklı ayarlarla) tuşuna kısayolları ile ilgili herhangi bir yerel ayarları kapattığınızda aşağıdaki harika komut dosyası kullanarak bağlantıları çıkarabilir

</path/to/workspace>\.metadata\.plugins\org.eclipse.core.runtime\.settings\ 
org.eclipse.ui.workbench.prefs 
+0

Lifesaver - teşekkürler! –

0

kaydedilir. Ben mükemmel bir geliştirici değilim, lütfen hacklerimi affedin.

Groovy Senaryo Kullanılmış (tezgah xmi dosyasına doğru bir yolda yerine):

workbench = new XmlSlurper().parse("<path to eclipse>/workspace/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi") 

List bindingTables 
workbench.bindingTables.each 
{ it-> 
//println "\tContributorURI: ${[email protected]} | \tElementID : [email protected]"; 

def command = "command"; 
def commandName = "commandname"; 
def description = "description"; 
def category; 
def name = "name"; 
def keys = "keys"; 
it.bindings.each 
{bindingIt-> 
    //loop through every binding entry 
    command = [email protected]; 
    keys = [email protected]; 
    workbench.commands.each 
    {commandIt-> 
     def thisCommand = commandIt.attributes()['{http://www.omg.org/XMI}id']; 
     if(thisCommand.equals(command.toString())) 
     { 
      commandName = [email protected]; 
      description = [email protected]; 
      category = [email protected]; 
      workbench.categories.each 
      {workbenchIt-> 
       if(workbenchIt.attributes()['{http://www.omg.org/XMI}id'].equals(category.toString())) 
       { 
        name = [email protected]; 
       } 
      } 
     } 
    } 
    println "\t\tKeys: ${keys}\tCommand: ${commandName}"+ 
      "\tDescription: "+description+"\tName: "+name; 
} 
} 
0

Aslında sadece başlar org.eclipse.ui.workbech.prefs dosyasında bütün çizgi kopyalayabilirsiniz: org.eclipse.ui.commands= ve yapıştırın güncellemek istediğiniz diğer ilgili eclipse çalışma alanı prefs dosyasını - en azından Eclipse Neon'da ve hepsini bir seferde alabileceksiniz.

İlgili konular