Eclipse 常用用法

it2022-05-08  12

搞了很多年的.NET,  最近开始搞Eclipse.    刚开始使用 Eclipse,  发现  Eclipser 远没有Visual Stuido  强大。  所以先把Eclipse常用的用法总结下   阅读目录 Eclipse 智能感知   

Eclipse 智能感知 

Visual Stuido 的智能感知非常强大,   其实Eclipse 也能做到。  设置如下   依次打开Windows→Preferences→Java→Editor→Content Assist,最下边的Auto-Activation如图所示:       Auto activation delay:                    默认是200毫秒  (难怪弹出这么慢)             修改为: 2毫秒或者20毫秒  Auto activation triggers for Java:  默认是"."  (难怪按字母后没反应)                 修改为:  .abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_(      

代码格式化

  格式化代码的快捷键是  Ctrl + Shift + F   你可以自定义格式化的风格:      点击 "New",   设置一个自定义的 Fomatter     Ctrl + D 删除当前行    

查找 Ctrl + h

  按ctrl + h 后弹出tab 选项,

你选择 file search 然后在下面输入要查找的字符串workset 那里选择你要查找的项目默认是全部项目进行查找

 

显示行号

打开Eclipse,   Window ->Prefences -- General -- Editors -- Text Editors -- show line numbers

转载于:https://www.cnblogs.com/TankXiao/p/3672546.html


最新回复(0)