配置环境 | 路径 | 设置 | 必选 |
---|---|---|---|
Project Interpreter | Settings → Project Interpreter → (下拉框)Show All → (+) | 选择Python可执行文件路径 | 是 |
设置项 | 路径 | 设置 | 必选 |
---|---|---|---|
版本控制忽略文件 | Settings → Editor → File Types → Ignore files and folders | .idea;target;*.iml;*.log; | 是 |
code文件编码 1 | Settings → Editor → File Encoding → Global Encoding / Project Encoding / Properties Files | UTF-8 | 是 |
code换行符 1 | Settings → Editor → Code Style → General → Line separator | Unix and macOS (\n) | 是 |
code字符缩进 | Settings → Editor → Code Style → 选择需要调整的语言 (前提:已安装对应的Idea插件) | Python :Tab size: 4 Indent: 4 Continuation indent: 8 | 是 |
关闭Toolbox自动升级 | JetBrains Toolbox → 右上角设置功能 → 所有Update …… automatically | X | 是 |
关闭PyCharm自动升级 | Settings → Apperarance&&Behavior → System Settings → Updates → 所有Automatically …… | X | 是 |
SVN初始化交互 | Settings → Version Control → Subversion → Enable interactive mode | √ | 是 |
自动清空commit msg | Settings → Version Control → Commit Dialog → Clear initial commit message | √ | 是 |
鼠标悬浮提示 | Settings → Editor → General → Other → Show quick documentation on mouse move Delay(ms):800 | √ | 是 |
code自动换行 | Settings → Editor → General → Soft Wraps → Soft-wrap files(新增*.* ) | √ | 是 |
code提示不区分大小写 | Settings → Editor → General → Code Completion → Match case | X | 是 |
调整菜单栏字体 | Settings → Apperarance&&Behavior → Apperarance → Use custom font(DejaVu Sans / 18 ) | √ | 否 |
启动默认项目列表 2 | Settings → Apperarance&&Behavior → System Settings → Startup/Shutdown → Reopen last project on startup | X | 否 |
调整工作区字体 | Settings → Editor → Font → Font / Size | DejaVu Sans Mono / 22 | 否 |
背景保护色 | Settings → Editor → Color Scheme → General → Text → Default text → Background(#C7EDCC ) | √ | 否 |
自动保存 | Intellij IDEA 设置自动保存时间、提示未保存的*星号 | . | 否 |
code模板 | Settings → Editor → Live Templates → 选中scala → + → Live Template | 1、填写模板 2、 Applicable in Scala:code | 否 |
标签换行显示 | Settings → Editor → General → Editor Tabs → Appearance → Show tabs in one row | X | 否 |
显示空格符 | Settings → Editor → General → Appearance → Show whitespaces | √ | 否 |
显示方法分隔符 | Settings → Editor → General → Appearance → Show method separators | √ | 否 |
win使用 git-bash.exe | Settings → Tools → Terminal → Application settings → Shell path | 选择:安装目录\Git\bin\bash.exe | 否 |
. | 快捷键 | ||
格式化代码 | Ctrl + Alt + L (前提:字符缩进 设置项已经设置) | . | 是 |
全部代码折叠 | Ctrl + Shift + -/+ | 折叠/展开 | 否 |
部分代码折叠 | Ctrl + -/+ | 折叠/展开 | 否 |
切换大小写 | Ctrl + Shift + u | . | 否 |
整行代码移动 | Ctrl + Shift + ↑↓ Alt + Shift + ↑↓ | . | 否 |
pom.xml依赖自动提示 | Ctrl + Alt + 空格 | 先填写<artifactId>xxx</artifactId> | 否 |
Recent Files(近期文件) | Ctrl + E | . | 否 |
搜索类 | Ctrl + N | . | 否 |
搜索文件 | Ctrl + Shift + N | . | 否 |
搜索符号/标识 | Ctrl + Shift + Alt + N | . | 否 |
快速生成变量 | Ctrl + Alt + V | . | 否 |
转跳下一行 | Shift + Enter | . | 否 |
. | Other | ||
显示Main Menu | Ctrl + Shift + A → Actions → 搜索menu | √ | 是 |
查看code历史 | 右键代码文件 → Local History → Show History | . | 否 |
LocalHistory存储路径 | Linux:/home/xxx/.PyCharm2019.3/system/LocalHistory Windows: C:/Users/xxx/.PyCharm2019.3/system/LocalHistory | . | 否 |
. | 常用插件 | ||
. | Git Commit Template | JetBrains下载 | |
. | Gitee | JetBrains下载 | |
. | Alibaba Cloud Toolkit | JetBrains下载 阿里官网 | |
. | .ignore | JetBrains下载 |
Java开发手册
(三) 代码格式
10.【强制
】IDE 的 text file encoding 设置为 UTF-8;IDE 中文件的换行符使用 Unix 格式,不要使用 Windows 格式 ↩︎ ↩︎启动默认项目列表图文教程:
IntelliJ IDEA - 启动进入项目列表,不进入上一次的项目 ↩︎