定义“在路径中查找"(PyCharm)的默认范围 [英] Defining default scope for 'Find in Path' (PyCharm)

查看:17
本文介绍了定义“在路径中查找"(PyCharm)的默认范围的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 PyCharm 社区版 4.0.4,我想为在路径中查找"的范围设置一个默认选项.

I'm using PyCharm Community Edition 4.0.4 and I'd like to set a default option for the scope of 'Find in Path'.

目前,按 Ctrl-Shift-F(在路径中查找"命令)会弹出一个窗口,其中选择了所有项目",我希望将目录"设置为默认目录.这是一张图片:

Currently, pressing Ctrl-Shift-F (the 'Find in Path' command) pops a window with 'All projects' selected, and I'd like to have 'Directory' with a custom directory set as the default instead. Here's a picture:

我在设置中搜索了类似的内容,但找不到.任何帮助表示赞赏.

I searched the Settings for anything like this, but could not find it. Any help is appreciated.

更新:我最近发现通过右键单击我的项目文件夹并选择在路径中查找..."(我的意思是实际上单击该选项),范围是自动为项目目录设置的!奇怪的是,右键单击项目文件夹在下拉菜单中指示的键盘快捷键与我使用的完全相同.但是,使用快捷方式会为 Scope 生成所有项目"选择...

Update: I've recently discovered that by right-clicking on my project folder and selecting "Find in Path ..." (I mean actually clicking the option), the scope is automatically set for the project directory! Strangely enough, the keyboard shortcut indicated in the drop-down menu from right-clicking the project folder is exactly the same as I use. Using the shortcut, however, yields the 'All projects' selection for Scope...

无论如何,我仍然希望为在路径中查找"对话框设置一个默认目录 - 最好是始终使用的目录,无论该对话框如何被调用(快捷方式,单击下拉选项).

In any case, I still wish to set a default directory for the Find in Path dialog - preferably one that is consistently used regardless of how the dialog was invoked (shortcut, clicking drop-down option).

推荐答案

这似乎是 Pycharm 等类似 Intellij 的 IDE 的默认行为.

It seems this is the default behavior for the Intellij-like IDEs such as Pycharm.

JetBrains 支持人员回答:

As answered by the JetBrains support:

我们在 YouTrack 中有相关问题:https://youtrack.jetbrains.com/issue/IDEA-87037 欢迎投票并留下评论."

"We have related issue in YouTrack: https://youtrack.jetbrains.com/issue/IDEA-87037 Feel free to vote for it and leave comments."

我复制以下问题的文本,以防链接失效:

I reproduce the text of the issue below, in case the link goes dead:

IDEA-87037 可用性:在路径中查找 -- 不在整个项目中

哪些步骤会重现问题?1. 按 Shift-Ctrl-F

What steps will reproduce the problem? 1. Press Shift-Ctrl-F

预期的结果是什么?对话框出现了先前的选择范围.

What is the expected result? The dialog comes up with the previously selected Scope.

反而会发生什么?对话框总是出现整个项目"已选中.

What happens instead? The dialog always comes up with "Whole project" selected.

在第 257 次选择目录"之后(忘记了四分之一)我不禁想到这真的是愚蠢而令人讨厌的软件.

After having selected "Directory" for the 257th time (and forgetting it one out of four times) I can't help thinking that this is really stupid and obnoxious software.

我想在整个项目中搜索 100 次.为什么 PhpStorm 一直坚持我要全盘搜索项目?

I want to search in the entire project maybe once out of 100 times. Why does PhpStorm keep insisting that I should search in the whole project?

这篇关于定义“在路径中查找"(PyCharm)的默认范围的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆