10.07-Idea的使用

1、Idea配置html

    -一、指定设置中maven的路径和Git的路径git

        --1.一、配置maven路径:github

            ---(1)Configure — Settings — 搜索“Maven” 缓存

            ---(2)点击“Maven”,在右侧的“Maven home directory”中选择已安装maven的根目录,而后“User setting file”选择maven根目录下conf文件中的setting.xml文件,最后点击Apply。maven

        --1.二、配置Git路径编辑器

            ---(1)Configure — Settings — 搜索“Git”ide

            ---(2)点击“Git”,在右侧“Path to Git executable”中选择安装Git的bin目录中Git.exe文件,而后点击“Test”,成功后点击Apply。函数

 

    -二、Idea界面、字体、背景配置测试

        --2.一、界面配置字体

            ---(1)点击“View”,勾选“Toolbar”,取消勾选“Navigation Bar”;

        --2.二、字体配置

            ---(1)先配置全局的字体,“Settings” — “Appearance&BeHavior” — “Appearance” — 勾选 “Use custom font” 选择字体

            ---(2)设置编辑器的字体,“Settings” — ”Editor” — “Font” —在右侧“Font”和“Size”设置字体的字体大小

        --2.三、背景设置

            ---(1)编辑器字体背景,“Settings” — ”Editor” — “Color Scheme” — “General”,右侧点击“Text” — “Default text”,最右侧勾选“Bold”和选择“Background”(护眼色: #C7EDCC

            ---(2)设置背景图片:“Settings” — “Keymap” — 输入“Set Background Image”搜索,设置快捷键(Ctrl + Alt +Shift + Q),使用快捷键选择上传的图片,调试好。

    -三、功能设置

        --3.一、统一编码:“Settings” — “Editor” — “File Encodings”,将右侧的编码统一改成UTF-8,勾上“Transparent native-to-ascii conversion”,使配置文件不乱码

        --3.二、方法分隔线:“Settings” — “Editor” — “General” — “Appearance”,右侧勾上“Show method separators”

        --3.三、类的注释模板:“Setting” — “Editor” — “File and Code Template” — “Includes” — “File Header”,编写想要的模板,以下:     

/**
 * @Author Lee_Finn
 * @Date ${DATE}
 * @Time ${TIME}
 * @Desc null
 */

        --3.四、设置Tab键:“Setting” — “Editor” — “Code Style” — “Java” — “Tabs and Indents”,点击“Use tab character”

        --3.五、设置单行注释:“Setting” — “Editor” — “Code Style” — “Java” — “Code Generation”,取消勾选“Line comment at first column”,勾选“Add a space at comment start”

        --3.六、设置Idea内存:找到并打开Idea安装地址bin目录下idea.exe.vmoptions和idea64.exe.vmoptions

-Xms2048m
-Xmx2048m
-XX:ReservedCodeCacheSize=1024m                 (测试调试地址:https://blog.csdn.net/github_32521685/article/details/50541436

           

    

   

    

 

1.一、 修改idea缓存文件位置(修改后须要从新;也能够将原来的缓存复制到想要存放的位置,这样就不须要了)

    1.1.一、 找到idea.properties(在idea安装目录的bin目录中),用记事本打开,找到以下的代码 :

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.config.path=${user.home}/.IntelliJIdea/config

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.system.path=${user.home}/.IntelliJIdea/system

1.1.二、配置本身想要存在的位置

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.config.path=${user.home}/.IntelliJIdea/config
idea.config.path=D:/AppTools/Idea/IdeaIU/cache/config

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.system.path=${user.home}/.IntelliJIdea/system
idea.system.path=D:/AppTools/Idea/IdeaIU/cache/system
 

1.三、设置idea构建堆的大小

 

2、Idea的基本样式设置

   

File  --> Settings --> Editor --> Color Scheme --> General --> 右侧 Text --> Default text 点击  ,

勾上Bold则会对编码页面的字体加粗, 勾上Italic则会将编码页面的字体变成斜体

点击Background则会改变编码的背景色(护眼色为 R:199,G:237,B:204)

  

2.1.2-左边栏背景色设置

首先将电脑设置成护眼模式,而后在Idea的setting中以下图设置,确认便可

  

3、快捷键设置

    3.1-  Ctrl    +    其余键 

序号 快 捷 键 Idea 默认 自定义(me)
0一、 Ctrl                            +                            A 选中全部  
0二、 Ctrl                            +                            B 查看类、方法、定义的字段或者关键字的声明  
0三、 Ctrl                            +                            C 复制选中的  
0四、 Ctrl                            +                            D 复制行 删除行
0五、 Ctrl                            +                            E 能够显示最近编辑的文件列表  
0六、 Ctrl                            +                            F 查找  
0七、 Ctrl                            +                            G 定位行  
0八、 Ctrl                            +                            H 显示类结构图(类的继承层次) 全局查找
0九、 Ctrl                            +                            I 实现方法  
十、 Ctrl                            +                            J 自动代码  
十一、 Ctrl                            +                            M 让光标处位于文本中间  
十二、 Ctrl                            +                            N 查找类  
1三、 Ctrl                            +                            O 重写方法  
1四、 Ctrl                            +                            Q 显示注释文档  
1五、 Ctrl                            +                            R 替换文本  
1六、 Ctrl                            +                            S 保存  
1七、 Ctrl                            +                            U 找到对应的父类  
1八、 Ctrl                            +                            V 粘贴  
1九、 Ctrl                            +                           W 能够选择单词继而选中语句继而选中行继而选中函数  
20、 Ctrl                            +                            X 剪切  
2一、 Ctrl                            +                            Y 删除代码 无效
2二、 Ctrl                            +                            Z 撤回上一步  
2三、 Ctrl                            +                     - 或 + 当前方法的折叠或展开  
2四、 Ctrl                            +                      Enter 语句前,向上插一行;语句末尾,向下插一行  
2五、 Ctrl                            +                           F7 查询当前元素在当前文件中的引用,而后按 F3 能够选择  
2六、 Ctrl                            +                           F12 浮动显示当前文件的结构  
2七、 Ctrl                            +                            ~ 快速切换方案(界面外观、代码风格、快捷键映射等菜单)  

 3.2- Alt    +    其余键

序号 快 捷 键 Idea 默认 自定义(me)
0一、 Alt                            +                            J 选择多个相同关键字的数据  
0二、 Alt                            +                            Q 查看当前方法的声明  
0三、 Alt                            +                            Insert 生成构造器/Getter/Setter等  
0四、 Alt                            +                            Up/Down 在方法间快速移动定位  
0五、 Alt                            +                            Left/Right 切换代码视图  
0六、 Alt                            +                            1 快速打开或隐藏工程面板  
0七、 Alt                            +                            F1 查找代码所在位置  
0八、 Alt                            +                            F3 查找相同文本,并高亮显示  
0九、 Alt                            +                            F7 查找整个工程中使用地某一个类、方法或者变量的位置  

  3.3- Shift    +    其余键

序号 快 捷 键 Idea 默认 自定义(me)
0一、 shift                        +                                click 关闭点击的文件  

3.4- Ctrl    +    Shift    +    其余键  

序号 快 捷 键 Idea 默认 自定义(me)
0一、 Ctrl                +                Shift                +                E 最近更改的文件  
0二、      

3.5- Ctrl    +    Alt    +    其余键

序号 快 捷 键 Idea 默认 自定义(me)
0一、 Ctrl            +            Alt            +            left/right 返回至上次浏览的位置  
0二、 Ctrl            +            Alt            +            up/down 向上/下移动语句  
0三、 Ctrl            +            Alt            +            B 跳转到抽象方法的实现 无效
0四、 Ctrl            +            Alt            +            I 将选中的代码进行自动缩进编排(html文件也行)  
0五、 Ctrl            +            Alt            +            J 用动态模板环绕  
0六、 Ctrl            +            Alt            +            L 格式化代码 无效
相关文章
相关标签/搜索