Atom配置python3 IDEs



  • Atom配置python3 IDEs

    重新装了系统,就把atom定制python3开发环境的方法贴出来

    Script插件

    安装

    apm install script
    #mac下cmd-i,linux or windows下shift-ctrl-b
    

    将script解释器默认为python3

    cmd + 逗号 打开Settings,点击Open Config Folder
    打开 .atom/packages/script/lib/grammars/python.coffee 文件
    将内容替换为:

    exports.Python =
      'Selection Based':
        command: 'python3'
        args: (context) -> ['-u', '-c', context.getCode()]
    
      'File Based':
        command: 'python3'
        args: ({filepath}) -> ['-u', filepath]
    
    exports.MagicPython = exports.Python
    
    exports.Sage =
      'Selection Based':
        command: 'sage'
        args: (context) -> ['-c', context.getCode()]
    
      'File Based':
        command: 'sage'
        args: ({filepath}) -> [filepath]
    
    

    为atom配置一个terminal,一个编辑器怎么可能没有terminal嫩?

    apm install platformio-ide-terminal
    

    demo演示:

    72ee505a41c8d90cc05d94d112c69a6d497b64f7.png b8325476eac1f516b8349e92dc4e49e68582fb7b.jpeg


Log in to reply