Intellij "before commit" 选项含义
Intellij "before commit" options meaning
我找不到有关提交时可见的几个选项(复选框)的文档。
我正在寻找 squash
来自 IDE 的所有提交的选项,我想知道这些选项之一是否不能帮助我做到这一点。是否有任何关于不同选项的官方文档?
根据我最初的评论,我认为有两个明显的特点:
- 详细描述 here 的提交前部分提供了一些代码检查任务,在实际提交之前,Idea 将 运行 在您的 类 上执行这些任务。根据他们的输出(例如:新的 TODO),有些人可能会要求确认您确实想要执行提交:
squash
功能,我还不是很熟悉,也许可以从 Rebasing Commits Dialog 访问
以下是提交前操作的简要说明(source):
Operation
Description
Reformat code
Perform code formatting according to the Project Code Style settings.
Rearrange code
Rearrange your code according to the arrangement rules preferences.
Optimize imports
Remove redundant import statements.
Perform code analysis
Perform code analysis Run code inspection on the files you are about to commit/shelve.
Check TODO (filter name)
Review the TODO items matching the specified filter. Click Configure to choose an existing TODO filter, or open the TODO settings page and define a new filter to be applied.
Cleanup
Automatically apply the current inspection profile to the files you are going to commit/shelve.
Update copyright
Add or update a copyright notice according to the selected copyright profile - scope combination.
我找不到有关提交时可见的几个选项(复选框)的文档。
我正在寻找 squash
来自 IDE 的所有提交的选项,我想知道这些选项之一是否不能帮助我做到这一点。是否有任何关于不同选项的官方文档?
根据我最初的评论,我认为有两个明显的特点:
- 详细描述 here 的提交前部分提供了一些代码检查任务,在实际提交之前,Idea 将 运行 在您的 类 上执行这些任务。根据他们的输出(例如:新的 TODO),有些人可能会要求确认您确实想要执行提交:
squash
功能,我还不是很熟悉,也许可以从 Rebasing Commits Dialog 访问
以下是提交前操作的简要说明(source):
Operation | Description |
---|---|
Reformat code | Perform code formatting according to the Project Code Style settings. |
Rearrange code | Rearrange your code according to the arrangement rules preferences. |
Optimize imports | Remove redundant import statements. |
Perform code analysis | Perform code analysis Run code inspection on the files you are about to commit/shelve. |
Check TODO (filter name) | Review the TODO items matching the specified filter. Click Configure to choose an existing TODO filter, or open the TODO settings page and define a new filter to be applied. |
Cleanup | Automatically apply the current inspection profile to the files you are going to commit/shelve. |
Update copyright | Add or update a copyright notice according to the selected copyright profile - scope combination. |