![]() Select a file in the editor and press F1, or whatever key binding you selected Use the Tools -> OS Commands menu selectionĬlick on + in OS Commands -> New: Command line. In Wing IDE, activate the OS Commands panel and define the command black toĮxecute black on the currently selected file: Wing supports black via the OS Commands tool, as explained in the Wing documentation on Uncheck “Trigger the watcher on external changes” Uncheck “Auto-save edited files to trigger the watcher” Go to Preferences or Settings -> Tools -> File Watchers and click + to add a Optionally, run Black on every file save: Preferences or Settings -> Keymap -> External Tools -> External Tools - Black. P圜harm -> Preferences -> Tools -> External Toolsįile -> Settings -> Tools -> External ToolsĬlick the + icon to add a new external tool with the following values:ĭescription: Black is the uncompromising Python code formatter.įormat the currently opened file by selecting Tools -> External Tools -> black.Īlternatively, you can set a keyboard shortcut by navigating to ![]() Open External tools in P圜harm/IntelliJ IDEA In this case the path to black is $PyInterpreterDirectory$/black. Note that if you are using a virtual environment detected by P圜harm, this is an %LocalAppData% \Programs \Python \Python36-32 \Scripts \black.exe # possible location
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |