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

4 comments
Comment actions Permalink

Hello Rob,

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!

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).

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.

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!"

0
Comment actions Permalink

Hello Dmitry,

Thanks for the quick responses.

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.

Right now drag & drop tab reordering is supported if tabs are shown in single-line

mode (Settings | Editor | Editor Tabs | x 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).

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!

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.

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?

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:

  1. Shutdown PyCharm
  2. In the \Pycharmprojects\<MyProject> directory, create a temporary test file called test1.txt with the text "delete test1" and save it
  3. In the \Pycharmprojects\<MyProject> directory, create a  temporary test file called test2.txt with the text "rename test2" and save it
  4. Launch PyCharm and open MyProject
  5. Review the list of files for MyProject
    1. test1.txt is shown (good)
    2. test2.txt is shown (good)
    3. test3.txt is not shown (good)
  6. Delete (via file system not PyCharm) the test1.txt from the file system
  7. Rename (via file system not PyCharm) test2.txt to rename2.txt
  8. In the \Pycharmprojects\<MyProject> directory, create a  temporary test file called test3.txt with the text "later add3" and save it
  9. Review the list of files for MyProject
    1. test1.txt is still shown (bad)
    2. test2.txt is still shown (bad) and rename2.txt is not shown (bad)
    3. test3.txt is not shown (bad)
  10. Wait for some period of time
  11. Review the list of files for MyProject
    1. test1.txt is still shown (bad)
    2. test2.txt is still shown (bad)
    3. test3.txt is not shown (bad)
  12. Punch the Synchronize button
  13. Review the list of files for MyProject
    1. test1.txt is no longer shown (good)
    2. test2.txt is still shown (good), instead rename2.txt is shown (good)
    3. test3.txt now is properly shown (good)

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

0
Comment actions Permalink

Hello Rob,

Do you have the "Synchronize files on frame activation" option enabled in

Settings | General?

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:

1. Shutdown PyCharm

2. In the \Pycharmprojects\<MyProject> directory, create a temporary

test file called test1.txt with the text "delete test1" and save it

3. In the \Pycharmprojects\<MyProject> directory, create a  temporary

test file called test2.txt with the text "rename test2" and save it

4. Launch PyCharm and open MyProject

5. Review the list of files for MyProject1. test1.txt is shown (good)

2. test2.txt is shown (good)

3. test3.txt is not shown (good)

6. Delete (via file system not PyCharm) the test1.txt from the file

system 7. Rename (via file system not PyCharm) test2.txt to

rename2.txt

8. In the \Pycharmprojects\<MyProject> directory, create a  temporary

test file called test3.txt with the text "later add3" and save it

9. Review the list of files for MyProject1. test1.txt is still shown

(bad)

2. test2.txt is still shown (bad) and rename2.txt is not shown (bad)

3. test3.txt is not shown (bad)

10. Wait for some period of time

11. Review the list of files for MyProject1. test1.txt is still shown

(bad)

2. test2.txt is still shown (bad)

3. test3.txt is not shown (bad)

12. Punch the Synchronize button

13. Review the list of files for MyProject1. test1.txt is no longer

shown (good)

2. test2.txt is still shown (good), instead rename2.txt is shown

(good)

3. test3.txt now is properly shown (good)

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

---

Original message URL:

http://devnet.jetbrains.net/message/5270316#5270316

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0
Comment actions Permalink

yole wrote:

Hello Rob,

Do you have the "Synchronize files on frame activation" option enabled in

Settings | General?

Yes

0

Please sign in to leave a comment.