File tree 2 files changed +23
-0
lines changed
Art/Icons/default/Scalable-Material/Toolbar_images
2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -451,6 +451,23 @@ initialization
451
451
ParseMessages := False;
452
452
CaptureOutput := False;
453
453
ConsoleHidden := True;
454
+ Utf8IO := True;
455
+ end ;
456
+
457
+ with (ToolsCollection.Add as TToolItem).ExternalTool do begin
458
+ Caption := _(' Format Selection' );
459
+ Description := _(' Format selected code using the "black" module' );
460
+ ApplicationName := ' $[PythonExe-Short]' ;
461
+ Parameters := ' -m black -' ;
462
+ ShortCut := Vcl.Menus.Shortcut(Ord(' F' ), [ssShift, ssAlt]);
463
+ Context := tcSelectionAvailable;
464
+ SaveFiles := sfNone;
465
+ ProcessInput := piSelection;
466
+ ProcessOutput := poSelection;
467
+ ParseMessages := False;
468
+ CaptureOutput := False;
469
+ ConsoleHidden := True;
470
+ Utf8IO := True;
454
471
end ;
455
472
456
473
with (ToolsCollection.Add as TToolItem).ExternalTool do begin
@@ -466,6 +483,7 @@ initialization
466
483
ParseMessages := False;
467
484
CaptureOutput := False;
468
485
ConsoleHidden := True;
486
+ Utf8IO := True;
469
487
end ;
470
488
471
489
with (ToolsCollection.Add as TToolItem).ExternalTool do begin
You can’t perform that action at this time.
0 commit comments