Lazarus IDE入門基礎教程

來源:互聯網
上載者:User

Lazarus IDE入門基礎教程

delphi+cnpack用慣了,轉移到lazarus有點難受是不是!其實,lazaurs的編輯器也是蠻強大的,支援代碼補全,自動完成,模板編輯,多行縮排注釋,選定代碼後批量更改裡面的單詞!目前,我知道的就這些。

好,先第一個,代碼補全!

按下鍵盤的Ctrl+W鍵!輸入變數後按下這個鍵就OK啦~

第二個,自動完成!

自動完成的快速鍵大多數都衝突了,解決方案是開啟Tools->Option->Editor->Key Mappings->CodeTools commands->Identifier completion上右鍵edit,然後根據實際情況修改吧,我的是再勾選Alt,也就是說,我的熱鍵是Ctrl+Alt+Space!不懂的看圖!

第三個,模板編輯!

這個也蠻簡單,按下鍵盤的Ctrl+J,然後輸入class,斷行符號!是不是很酷!

第四個,多行縮排注釋!

縮排的:向左 -> Ctrl+U

向右 -> Ctrl+I(選中多行代碼更爽)

多行注釋:Ctrl+/

第五個,選定代碼後批量更改裡面的單詞!

先選中一行代碼,然後點擊編輯器左邊顯示行號左邊的那支筆,看看圖哦。

這個時候你可以輸入b,變數a就全部改為b,還可以按下tab跳到下一個單詞。

到這裡完了沒有,嘿嘿~再送大家一個非常好看的東東!編輯器的高亮!

<?xml version="1.0"?>
<CONFIG>
  <EditorOptions Version="9">
    <Display DoNotWarnForFont="Ubuntu Mono" EditorFont="Ubuntu Mono" EditorFontSize="13">
      <MarkupCurrentWord NoKeyword="False"/>
    </Display>
    <KeyMapping>
      <default Count="1">
        <Version Value="6"/>
        <Item1 Name="Identifier completion">
          <KeyA Default="False" Key1="32" Shift1="5"/>
        </Item1>
      </default>
    </KeyMapping>
    <CodeTools CodeTemplateFileName="/home/lht/.lazarus/lazarus.dci" CompletionLongLineHintTypeCompletionLongLineHintType="sclpExtendRightOnly" AutoDelayInMSec="104"/>
    <Mouse>
      <Default Version="1"/>
    </Mouse>
    <Color Version="9">
      <LangObjectPascal Version="9">
        <ColorScheme Value="Twilight"/>
        <SchemeTwilight>
          <Space Background="1973790" FrameColor="5000268" FrameStyle="slsDotted" FrameEdges="sfeBottom"/>
          <Number Foreground="7434751"/>
          <String Foreground="7337839"/>
          <Symbol Foreground="clYellow"/>
          <Comment Foreground="clSkyBlue" Style="fsItalic"/>
          <Assembler Foreground="11715098"/>
          <Directive Foreground="22015"/>
          <Case_label Foreground="16541892"/>
          <IDE_Directive Foreground="1478752"/>
          <Reserved_word Foreground="1023473"/>
        </SchemeTwilight>
      </LangObjectPascal>
      <Globals Version="9">
        <SchemeTwilight>
          <ahaDefault Background="1973790"/>
        </SchemeTwilight>
      </Globals>
      <LangPython Version="9">
        <SchemeTwilight>
          <Float Foreground="8345087"/>
          <Octal Foreground="16755455"/>
          <Number Foreground="8345087"/>
          <String Foreground="8388522"/>
          <Symbol Foreground="clYellow"/>
          <Comment Foreground="clSkyBlue"/>
          <Hexadecimal Foreground="8345087"/>
          <SyntaxError Foreground="16755285"/>
          <Documentation Foreground="16755370"/>
          <Reserved_word Foreground="43775"/>
          <Non_reserved_keyword Foreground="8366847"/>
        </SchemeTwilight>
      </LangPython>
    </Color>
    <Misc PasExtendedKeywordsMode="True"/>
    <General>
      <Editor TabIndent="True" TabWidth="2"/>
    </General>
    <DividerDraw>
      <LangObjectPascal>
        <TypeSect>
          <TopColor Value="9157119"/>
        </TypeSect>
        <TypeGVar>
          <TopColor Value="9157119"/>
        </TypeGVar>
        <TypeGStruct>
          <TopColor Value="9157119"/>
        </TypeGStruct>
        <TypeProc>
          <TopColor Value="9157119"/>
        </TypeProc>
        <TypeLStruct>
          <MaxDepth Value="1"/>
          <TopColor Value="9157119"/>
        </TypeLStruct>
      </LangObjectPascal>
    </DividerDraw>
  </EditorOptions>
</CONFIG>

Ubuntu 13.04 下正常啟動 Lazarus 1.0.8

Lazarus IDE 的詳細介紹:請點這裡
Lazarus IDE 的:請點這裡

本文永久更新連結地址:

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.