Forum > Editor

Jedi code formatter missing from Tools menu

(1/1)

jl:
I was using it previously on my old laptop, but after it crashed, I installed Lazarus 2.0.12 r64642 FPC 3.2.0 x86_64-win64-win32/win64 and now the option is missing.  I also tried using Ctrl-D but it doesn't work.  Can anyone please tell me how to get it back?  Thanks.

ccrause:
You probably have to install the package: Click on Package -> Install/Uninstall Packages, then select jcfidelazarus 2.0 in the Available for installation list, click Install selection button, then click on the Save and rebuild IDE button.

jl:
Thanks, I tried that, but doesn't appear to work.  Please check attached screens.


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---<?xml version="1.0" ?><JediCodeFormatSettings>    <WriteVersion> 2.44 </WriteVersion>    <WriteDateTime> 44354.5018849074 </WriteDateTime>    <Description> format settings for use with Lazarus </Description>    <ConfirmFormat> True </ConfirmFormat>  <Obfuscate>      <Enabled> False </Enabled>      <Caps> 1 </Caps>      <RemoveComments> True </RemoveComments>      <RemoveWhiteSpace> True </RemoveWhiteSpace>      <RemoveIndent> True </RemoveIndent>      <RebreakLines> True </RebreakLines>  </Obfuscate>  <Clarify>      <OnceOffs> 0 </OnceOffs>      <Warnings> True </Warnings>      <WarnUnusedParams> False </WarnUnusedParams>      <IgnoreUnusedParams> Sender </IgnoreUnusedParams>      <FileExtensions> dpr,lpr,pas,pp </FileExtensions>  </Clarify>  <Indent>      <IndentationSpaces> 2 </IndentationSpaces>      <FirstLevelIndent> 0 </FirstLevelIndent>      <HasFirstLevelIndent> False </HasFirstLevelIndent>      <IndentBeginEnd> False </IndentBeginEnd>      <IndentbeginEndSpaces> 2 </IndentbeginEndSpaces>      <IndentLibraryProcs> True </IndentLibraryProcs>      <IndentProcedureBody> False </IndentProcedureBody>      <KeepCommentsWithCodeInGlobals> True </KeepCommentsWithCodeInGlobals>      <KeepCommentsWithCodeInProcs> True </KeepCommentsWithCodeInProcs>      <KeepCommentsWithCodeInClassDef> True </KeepCommentsWithCodeInClassDef>      <KeepCommentsWithCodeElsewhere> True </KeepCommentsWithCodeElsewhere>      <IndentElse> False </IndentElse>      <IndentCaseElse> True </IndentCaseElse>      <IndentNestedTypes> False </IndentNestedTypes>      <IndentVarAndConstInClass> False </IndentVarAndConstInClass>  </Indent>  <Spaces>      <TabsToSpaces> True </TabsToSpaces>      <SpacesToTabs> False </SpacesToTabs>      <SpacesPerTab> 2 </SpacesPerTab>      <SpacesForTab> 2 </SpacesForTab>      <FixSpacing> True </FixSpacing>      <SpaceBeforeClassHeritage> False </SpaceBeforeClassHeritage>      <SpacesBeforeColonVar> 0 </SpacesBeforeColonVar>      <SpacesBeforeColonConst> 0 </SpacesBeforeColonConst>      <SpacesBeforeColonParam> 0 </SpacesBeforeColonParam>      <SpacesBeforeColonFn> 0 </SpacesBeforeColonFn>      <SpacesBeforeColonClassVar> 0 </SpacesBeforeColonClassVar>      <SpacesBeforeColonRecordField> 0 </SpacesBeforeColonRecordField>      <SpacesBeforeColonCaseLabel> 0 </SpacesBeforeColonCaseLabel>      <SpacesBeforeColonLabel> 0 </SpacesBeforeColonLabel>      <SpacesBeforeColonInGeneric> 0 </SpacesBeforeColonInGeneric>      <MaxSpacesInCode> 2 </MaxSpacesInCode>      <UseMaxSpacesInCode> True </UseMaxSpacesInCode>      <SpaceForOperator> 0 </SpaceForOperator>      <SpaceBeforeOpenBracketsInFunctionDeclaration> False </SpaceBeforeOpenBracketsInFunctionDeclaration>      <SpaceBeforeOpenBracketsInFunctionCall> False </SpaceBeforeOpenBracketsInFunctionCall>      <SpaceBeforeOpenSquareBracketsInExpression> False </SpaceBeforeOpenSquareBracketsInExpression>      <SpaceAfterOpenBrackets> False </SpaceAfterOpenBrackets>      <SpaceBeforeCloseBrackets> False </SpaceBeforeCloseBrackets>      <MoveSpaceToBeforeColon> False </MoveSpaceToBeforeColon>  </Spaces>  <Returns>      <WhenRebreakLines> 2 </WhenRebreakLines>      <MaxLineLength> 90 </MaxLineLength>      <NumReturnsAfterFinalEnd> 1 </NumReturnsAfterFinalEnd>      <RemoveBadReturns> True </RemoveBadReturns>      <AddGoodReturns> True </AddGoodReturns>      <UsesOnePerLine> False </UsesOnePerLine>      <BreakAfterUses> False </BreakAfterUses>      <RemoveExpressionReturns> True </RemoveExpressionReturns>      <RemoveVarReturns> True </RemoveVarReturns>      <NoReturnsInProperty> True </NoReturnsInProperty>      <RemoveProcedureDefReturns> True </RemoveProcedureDefReturns>      <RemoveReturns> True </RemoveReturns>      <RemoveVarBlankLines> True </RemoveVarBlankLines>      <RemoveProcHeaderBlankLines> True </RemoveProcHeaderBlankLines>      <Block> 1 </Block>      <BlockBegin> 0 </BlockBegin>      <Label> 1 </Label>      <LabelBegin> 1 </LabelBegin>      <CaseLabel> 1 </CaseLabel>      <CaseBegin> 1 </CaseBegin>      <CaseElse> 0 </CaseElse>      <CaseElseBegin> 0 </CaseElseBegin>      <EndElse> 0 </EndElse>      <ElseIf> 1 </ElseIf>      <ElseBegin> 0 </ElseBegin>      <BeforeCompilerDirectUses> 1 </BeforeCompilerDirectUses>      <BeforeCompilerDirectStatements> 0 </BeforeCompilerDirectStatements>      <BeforeCompilerDirectGeneral> 1 </BeforeCompilerDirectGeneral>      <AfterCompilerDirectUses> 1 </AfterCompilerDirectUses>      <AfterCompilerDirectStatements> 0 </AfterCompilerDirectStatements>      <AfterCompilerDirectGeneral> 1 </AfterCompilerDirectGeneral>      <ReturnChars> 0 </ReturnChars>      <RemoveConsecutiveBlankLines> True </RemoveConsecutiveBlankLines>      <MaxConsecutiveBlankLines> 4 </MaxConsecutiveBlankLines>      <MaxBlankLinesInSection> 1 </MaxBlankLinesInSection>      <LinesBeforeProcedure> 1 </LinesBeforeProcedure>  </Returns>  <Comments>      <RemoveEmptyDoubleSlashComments> True </RemoveEmptyDoubleSlashComments>      <RemoveEmptyCurlyBraceComments> True </RemoveEmptyCurlyBraceComments>  </Comments>  <Capitalisation>      <Enabled> True </Enabled>      <ReservedWords> 1 </ReservedWords>      <Operators> 1 </Operators>      <Directives> 1 </Directives>      <Constants> 1 </Constants>      <Types> 1 </Types>  </Capitalisation>  <SpecificWordCaps>      <Enabled> True </Enabled>      <Words>  </Words>  </SpecificWordCaps>  <Identifiers>      <Enabled> True </Enabled>      <Words> ActivePage,AnsiCompareStr,AnsiCompareText,AnsiUpperCase,AsBoolean,AsDateTime,AsFloat,AsInteger,Assign,AsString,AsVariant,BeginDrag,Buttons,Caption,Checked,Classes,ClassName,Clear,Close,Components,Controls,Count,Create,Data,Dec,Delete,Destroy,Dialogs,Enabled,EndDrag,EOF,Exception,Execute,False,FieldByName,First,Forms,Free,FreeAndNil,GetFirstChild,Graphics,Height,idAbort,idCancel,idIgnore,IDispatch,idNo,idOk,idRetry,idYes,Inc,Initialize,IntToStr,ItemIndex,IUnknown,Lines,Math,MaxValue,mbAbort,mbAll,mbCancel,mbHelp,mbIgnore,mbNo,mbOK,mbRetry,mbYes,mbYesToAll,Messages,MinValue,mnNoToAll,mrAbort,mrAll,mrCancel,mrIgnore,mrNo,mrNone,mrNoToAll,mrOk,mrRetry,mrYes,mrYesToAll,mtConfirmation,mtCustom,mtError,mtInformation,mtWarning,Name,Next,Open,Ord,ParamStr,PChar,Perform,ProcessMessages,Read,ReadOnly,RecordCount,Register,Release,Result,Sender,SetFocus,Show,ShowMessage,Source,StdCtrls,StrToInt,SysUtils,TAutoObject,TButton,TComponent,TDataModule,Text,TForm,TFrame,TList,TNotifyEvent,TObject,TObjectList,TPageControl,TPersistent,True,TStringList,TStrings,TTabSheet,Unassigned,Value,Visible,WideString,Width,Windows,Write </Words>  </Identifiers>  <NotIdent>      <Enabled> True </Enabled>      <Words> False,Name,nil,PChar,read,ReadOnly,True,WideString,write </Words>  </NotIdent>  <UnitNameCaps>      <Enabled> True </Enabled>      <Words> ActnColorMaps,ActnCtrls,ActnList,ActnMan,ActnMenus,ActnPopup,ActnRes,ADOConst,ADODB,ADOInt,AppEvnts,AxCtrls,BandActn,bdeconst,bdemts,Buttons,CheckLst,Classes,Clipbrd.pas,CmAdmCtl,ComCtrls,ComStrs,Consts,Controls,CtlConsts,CtlPanel,CustomizeDlg,DataBkr,DB,DBActns,dbcgrids,DBClient,DBClientActnRes,DBClientActns,DBCommon,DBConnAdmin,DBConsts,DBCtrls,DbExcept,DBGrids,DBLocal,DBLocalI,DBLogDlg,dblookup,DBOleCtl,DBPWDlg,DBTables,DBXpress,DdeMan,Dialogs,DrTable,DSIntf,ExtActns,ExtCtrls,ExtDlgs,FileCtrl,FMTBcd,Forms,Graphics,GraphUtil,Grids,HTTPIntr,IB,IBBlob,IBCustomDataSet,IBDatabase,IBDatabaseInfo,IBDCLConst,IBErrorCodes,IBEvents,IBExternals,IBExtract,IBGeneratorEditor,IBHeader,IBIntf,IBQuery,IBRestoreEditor,IBSecurityEditor,IBServiceEditor,IBSQL,IBSQLMonitor,IBStoredProc,IBTable,IBUpdateSQL,IBUtils,IBXConst,ImgList,Jcl8087,JclAbstractContainers,JclAlgorithms,JclAnsiStrings,JclAppInst,JclArrayLists,JclArraySets,JclBase,JclBinaryTrees,JclBorlandTools,JclCIL,JclCLR,JclCOM,JclComplex,JclCompression,JclConsole,JclContainerIntf,JclCounter,JclDateTime,JclDebug,JclDotNet,JclEDI,JclEDI_ANSIX12,JclEDI_ANSIX12_Ext,JclEDI_UNEDIFACT,JclEDI_UNEDIFACT_Ext,JclEDISEF,JclEDITranslators,JclEDIXML,JclExprEval,JclFileUtils,JclFont,JclGraphics,JclGraphUtils,JclHashMaps,JclHashSets,JclHookExcept,JclIniFiles,JclLANMan,JclLinkedLists,JclLocales,JclLogic,JclMapi,JclMath,JclMetadata,JclMIDI,JclMime,JclMiscel,JclMsdosSys,JclMultimedia,JclNTFS,JclPCRE,JclPeImage,JclPrint,JclQGraphics,JclQGraphUtils,JclQueues,JclRegistry,JclResources,JclRTTI,JclSchedule,JclSecurity,JclShell,JclSimpleXml,JclStacks,JclStatistics,JclStreams,JclStrHashMap,JclStringLists,JclStrings,JclStructStorage,JclSvcCtrl,JclSynch,JclSysInfo,JclSysUtils,JclTask,JclTD32,JclUnicode,JclUnitConv,JclUnitVersioning,JclUnitVersioningProviders,JclValidation,JclVectors,JclWideFormat,JclWideStrings,JclWin32,JclWin32Ex,JclWinMIDI,ListActns,Mask,MConnect,Menus,Midas,MidasCon,MidConst,MPlayer,MtsRdm,Mxconsts,ObjBrkr,OleAuto,OleConst,OleCtnrs,OleCtrls,OleDB,OleServer,Outline,Printers,Provider,recerror,ScktCnst,ScktComp,ScktMain,SConnect,ShadowWnd,SimpleDS,SMINTF,SqlConst,SqlExpr,SqlTimSt,StdActnMenus,StdActns,StdCtrls,StdStyleActnCtrls,SvcMgr,SysUtils,TabNotBk,Tabs,TConnect,Themes,ToolWin,ValEdit,VDBConsts,WinHelpViewer,XPActnCtrls,XPMan,XPStyleActnCtrls </Words>  </UnitNameCaps>  <Asm>      <Caps> 0 </Caps>      <BreaksAfterLabel> 1 </BreaksAfterLabel>      <BreaksAfterLabelEnabled> True </BreaksAfterLabelEnabled>      <StatementIndentEnabled> True </StatementIndentEnabled>      <StatementIndent> 7 </StatementIndent>      <ParamsIndentEnabled> True </ParamsIndentEnabled>      <ParamsIndent> 15 </ParamsIndent>  </Asm>  <PreProcessor>      <Enabled> False </Enabled>      <DefinedSymbols> MSWINDOWS </DefinedSymbols>      <DefinedOptions>  </DefinedOptions>  </PreProcessor>  <Align>      <AlignAssign> False </AlignAssign>      <AlignConst> False </AlignConst>      <AlignTypedef> False </AlignTypedef>      <AlignVars> False </AlignVars>      <AlignComment> False </AlignComment>      <AlignFields> False </AlignFields>      <InterfaceOnly> False </InterfaceOnly>      <MinColumn> 2 </MinColumn>      <MaxColumn> 60 </MaxColumn>      <MaxVariance> 5 </MaxVariance>      <MaxVarianceInterface> 5 </MaxVarianceInterface>      <MaxUnalignedStatements> 0 </MaxUnalignedStatements>  </Align>  <Replace>      <Enabled> False </Enabled>      <Words>  </Words>  </Replace>  <Uses>      <RemoveEnabled> False </RemoveEnabled>      <InsertInterfaceEnabled> False </InsertInterfaceEnabled>      <InsertImplementationEnabled> False </InsertImplementationEnabled>      <FindReplaceEnabled> False </FindReplaceEnabled>      <Remove>  </Remove>      <InsertInterface>  </InsertInterface>      <InsertImplementation>  </InsertImplementation>      <Find>  </Find>      <Replace>  </Replace>  </Uses>  <Transform>      <BeginEndStyle> 1 </BeginEndStyle>      <AddBlockEndSemicolon> True </AddBlockEndSemicolon>      <SortUsesInterface> False </SortUsesInterface>      <SortUsesImplmentation> False </SortUsesImplmentation>      <SortUsesProgram> False </SortUsesProgram>      <SortUsesBreakOnReturn> False </SortUsesBreakOnReturn>      <SortUsesBreakOnComment> False </SortUsesBreakOnComment>      <SortUsesSortOrder> 0 </SortUsesSortOrder>      <SortUsesNoComments> False </SortUsesNoComments>  </Transform></JediCodeFormatSettings>

ccrause:

--- Quote from: jl on June 07, 2021, 08:34:04 am ---Thanks, I tried that, but doesn't appear to work.
--- End quote ---
What didn't work? Can you describe the steps you followed and the eventual problem or error message you encountered?  It is difficult to improve my instructions if I don't know what happens on your side.


--- Quote ---  Please check attached screens.
--- End quote ---
Can you describe, using words, the steps you followed. It may help someone else with similar problems in future.

Navigation

[0] Message Index

Go to full version