mikebai.com

  • Home
  • dev
  • DotNET
  • M365
  • 搞笑
  • 杂七杂八
  • FocusDict
個人BLOG
it developer
  1. Main page
  2. dev
  3. Main content

eclipse起始环境配置总结~(修改Ctrl+鼠标左键 etc)

2011-12-08 96hotness 0likes 0comments

在用Eclipse的时候,尤其是在使用Ctrl+c Ctrl+v 时,有时会不小心会连按到鼠标2下,
这时候Eclipse会自动切换到到跟当前代码相关联的文件中去。
如果文件较大(例如:struts-tags.tld)这样的文件。。。那么会卡在那里10几秒。。。


取消该功能方法如下:


选择【Window】菜单
Preferences ——>General——>Editors——>Text Editors——>Hyperlinking


然后取消或者将默认的Ctrl改成其他快捷键(例如:ALT)
 


 


//*****************************
自动缩进:Ctrl+i,对选中的代码自动缩进,与代码对齐不同,这个不会自动在分号后换行,不适用Aptana
定位到最后编辑的行:Ctrl+Q 这个真的很好用,尤其是对我这种记性差,常要翻上翻下看变量名,类名的名


//*****************************
取消拼写错误检错
在   window   -   Preferences   左侧的   General   -   Editors   -  Text Editors   -   Spelling   下的选项中
去掉   Enable   spell   checking   选项


//*****************************
显示行号

1.在Editor的最左边(设置断点的地方)点右键,出现的快捷菜单如上;
2.依次点击Window->Preferences->Gerenal->Editors->Text Editors
然后在show line number复选框打对号即可。



//*****************************
XML文件格式化设置-->每个属性设置占一行


进入 Window/Preferences,展开到 XML/XML Files/Editor,
勾选 “Split multiple attributes each on a new line”


 




 

Tag: Nothing
Last updated:2011-12-08

mikebai

This person is a lazy dog and has left nothing

Like
< Last article
Next article >

COPYRIGHT © 2025 mikebai.com. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang