GEdit/Python execution plugin?

后端 未结 8 1687
一向
一向 2021-02-03 13:41

I\'m just starting out learning python with GEdit plus various plugins as my IDE.

Visual Studio/F# has a feature which permits the highlighting on a piece of text in th

8条回答
  •  南方客
    南方客 (楼主)
    2021-02-03 14:33

    If you wish to see the result of entire .py file, you can put this code in your new created external tool window

    #!/usr/bin/env python
    import sys
    exec(sys.stdin.read())
    

    and change the Input to Current document.

提交回复
热议问题