Duplicated code fragment (4 lines long)
时间: 2023-09-08 10:07:14 浏览: 157
Duplicated code fragment (4 lines long)是指当前文件中存在重复的代码片段,该提示可以帮助我们优化代码。如果你不喜欢这个提示,你可以按照以下步骤关闭它:
1. 打开【File】菜单,选择【Settings】。
2. 在弹出的设置窗口中,点击【Preferences】。
3. 在左侧导航栏中,点击【Editor】。
4. 在右侧面板中,点击【General】选项。
5. 取消勾选【Duplicated Code fragment】。
这样就可以关闭Duplicated code fragment (4 lines long)的提示了。 <span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* [IDEA 中提示 Duplicated code fragment (15 lines long)【解决方案】](https://blog.csdn.net/cst522445906/article/details/123108685)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [Python报警代码处理-- Duplicated code fragment(xxx lines long)](https://blog.csdn.net/weixin_37493499/article/details/118637202)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文