PyCharm usage questions
Greetings,
I downloaded PyCharm a couple of days ago and have been kicking its tires so to speak. Have yet to play with the debug tools, but for editing I've been quite impressed --- except for two usage features that have me stumped. Any advice you can offer would be appreciated.
I have a couple of simple usage questions which for the life of me have my stumped:
1. How do I re-order the list of open files I am editting?
Say for example that I've got a1.py, b2.by, c3.py, d4.py and e5.py files in my project opened up in the editor and the tab bar showing those files displays them in that order. I spent most of my time in d4.py and e5.py so I want them at the front of the list (i.e. d4.py, e5.py then a1.py, b2.py and c3.py) of files in the tabbed editor.
How do I do that?
- In PyDev and Notepad++, I just select d4.py and drag the tab to front of a1.py and drop, then repeat with e5.py
- With PyCharm, either the files are locked by default, drop-and-drag for does not appear to function or I somehow disabled that feature when experimenting with preferences. If I need to submit a bug or an enhancement request, pleas let me know!
2. In the project explorer, how do I get the list of files to refresh? And is there a hotkey? So far the only work-around I've found is closing the project and then re-opening.
Cheers,
Rob
Please sign in to leave a comment.
Hello Rob,
Right now drag & drop tab reordering is supported if tabs are shown in single-line
mode (Settings | Editor | Editor Tabs | Show tabs in single row). Tab
reordering for other tab configurations will be supported in a future update
(maybe before 1.0, maybe after - don't know yet).
The list of files is supposed to be refreshed automatically. Which OS are
you using PyCharm on? Does pressing the Synchronize button in the toolbar
(third one from the left) have any effect?
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Hello Dmitry,
Thanks for the quick responses.
Regarding the tab re-ordering question (#1), your response was spot-on. Enabling the Show-tabs-in-single-row editor preference allows the re-ordering behavior I was looking for. I love it when the issue is between the keyboard and the chair!
Regarding the refresh issue (#2), I can reliably recreate the issue/behavior under Win7 64-bit Pro and Win7 64-bit Home. Have not tried WinXP or the latest Ubuntu, but can if needed. The files systems changes are not caught dynamically in the project explorer, but if I do hit the Synchronize button the changes are seen. Here is a silly, contrived use-case:
As an added step, after #11 but before #12 I double-clicked test1.txt (which had already beeen deleted from the file system) and the file opened up file in the editor with its contents. I then closed PyCharm (without changing test1.txt) and checked the filesystem and test1.txt was not recreated (which I think is the desired behavior?).
Hope this helps.
Cheers,
Rob
Hello Rob,
Do you have the "Synchronize files on frame activation" option enabled in
Settings | General?
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Yes