如何防止Pycharm在尝试编辑特定行或函数/类名时打开函数或类的源文件?

vatpfxk5  于 5个月前  发布在  PyCharm
关注(0)|答案(1)|浏览(77)

我目前的Pycharm版本是2023.2.5(Ubuntu Linux)每当我试图编辑一个函数的名称或点击一个类名,它会带我到它的源文件,这很烦人。如何禁用此功能?

from .views import test  

"""when I click on the above line to add test2,it takes me to the views.py
Expected behavior:-Should be able to edit a line(add to the end of it) without Pycharm taking me to the source file of that function or class..."""

urlpatterns = [path('home', test, name='test'),
               path('about', test2, name='test2')]

字符串

sqyvllje

sqyvllje1#

经过一些研究,我发现问题是由于我添加的键Map打开文件与单击新选项卡。
在Pycharm Ctrl Alt S->Keymap->Jump to Source->right click on it->remove click为我工作!

相关问题