歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Lazarus IDE入門基礎教程

Lazarus IDE入門基礎教程

日期:2017/2/28 14:26:28   编辑:Linux教程

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" Frame FrameEdges="sfeBottom"/>
<Number Foreground="7434751"/>
<String Foreground="7337839"/>
<Symbol Foreground="clYellow"/>
<Comment Foreground="clSkyBlue" />
<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 http://www.linuxidc.com/Linux/2014-10/108546.htm

Lazarus IDE 的詳細介紹:請點這裡
Lazarus IDE 的下載地址:請點這裡

Copyright © Linux教程網 All Rights Reserved