Basic Introduction to Lazarus IDE

Source: Internet
Author: User

Basic Introduction to Lazarus IDE

Delphi + cnpack is used to it. It's a bit difficult to transfer to lazarus, isn't it! In fact, the lazaurs editor is quite powerful. It supports Code Completion, Automatic completion, template editing, multi-line Indent comments, and batch change the words in the code after selection! This is what I know.

Okay. First, complete the code!

Press Ctrl + W on the keyboard! Press the key after entering the variable ~

The second option is automatically completed!

Most automatically completed Shortcut Keys conflict. The solution is to open Tools> Option> Editor> Key Mappings> CodeTools commands> Identifier completion, right-click edit, modify it according to the actual situation. I select Alt again. That is to say, my hot key is Ctrl + Alt + Space! Look at the picture if you don't understand it!

Third, edit the template!

This is quite simple. Press Ctrl + J on the keyboard, enter the class, and press Enter! Is it cool!

Fourth, multi-line Indent comment!

Indented: Left-> Ctrl + U

Right-> Ctrl + I (it is better to select multiple lines of code)

Multi-line comment: Ctrl +/

Fifth, select the code and batch change the words in it!

Select a line of code, and then click the pen on the left of the line number on the left of the editor to see the figure.

At this time, you can enter B, change all variable a to B, and press tab to jump to the next word.

Not here, hey ~ Let's take a look! Highlight of the editor!

<? 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" type = "codeph" text = "codeph"/>
<Symbol Foreground = "clYellow"/>
<Comment Foreground = "clSkyBlue" Style = "fsItalic"/>
<Author er Foreground = "11715098"/>
<Directive Foreground = "22015"/>
<Case_label Foreground = "16541892"/>
<IDE_Directive Foreground = "1478752" type = "codeph" text = "/codeph"/>
<Reserved_word Foreground = "1023473"/>
</SchemeTwilight>
</LangObjectPascal>
<Globals Version = "9">
<SchemeTwilight>
<AhaDefault Background = "1973790" type = "codeph" text = "/codeph"/>
</SchemeTwilight>
</Globals>
<LangPython Version = "9">
<SchemeTwilight>
<Float Foreground = "8345087"/>
<Octal Foreground = "16755455"/>
<Number Foreground = "8345087"/>
<String Foreground = "8388522" type = "codeph" text = "codeph"/>
<Symbol Foreground = "clYellow"/>
<Comment Foreground = "clSkyBlue"/>
<Hexadecimal Foreground = "8345087"/>
<SyntaxError Foreground = "16755285" type = "codeph" text = "/codeph"/>
<Documentation Foreground = "16755370" type = "codeph" text = "/codeph"/>
<Reserved_word Foreground = "43775"/>
<Non_reserved_keyword Foreground = "8366847" type = "regxph" text = "yourobjectname"/>
</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 normally starts Lazarus 1.0.8

For details about Lazarus IDE, click here
Lazarus IDE: click here

This article permanently updates the link address:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.