Codelite Manual
Total Page:16
File Type:pdf, Size:1020Kb
CodeLite Manual working tutorial with CodeLite Kanwal Rekhi School of Information Technology Indian Institute of Technology - Bombay Mumbai - 400076. 1 Contents 1. Introduction ..........................................................................................3 2. Installation 2.1 Installation on Windows...................................................................................3 2.2 Installation on Ubuntu......................................................................................9 3. CodeLite IDE................................................................................. 11 4. Working With CodeLite on Ubuntu....................................................... 13 5. Working With CodeLite on Windows.................................................... 17 2 1. Introduction CodeLite is an open source, free, cross platform IDE for the C/C++ programming languages which runs best on all major Platforms. To comply with CodeLite's open source spirit, the program itself is compiled and debugged using only free tools (MinGW and GDB) for Mac OS X, Windows, Linux and FreeBSD, though CodeLite can execute any third-party compiler or tool that has a command-line interface. 2. Installation This section explains the steps required to install Code::Block on Ubuntu and Windows. This manual is prepared after installing and testing Code::Block on Ubuntu 12.04 and Windows7. 2.1 Installation on Windows Download the set up package from Ref [codelite.org/Developers/Windows] and run the .exe file. 3 4 5 \ 6 7 8 2.2 Installation on Ubuntu 1. Open Synaptic manager,search for CodeLite and check all the Packages. 9 10 3. CodeLite IDE CodeLite IDE is shown figure 3.1. The main parts of CodeLite along with figures are discussed below. Figure 3.1: CodeLite IDE 1. Menu Bar Menu bar is shown in figure 3.2. Few important link in menu bar are described below (described from left to right) figure 3.2: Menu Bar (a) File: File menu link contains option to create new file, open file, relode file,load a group of tabs, save file. It also close,recent file, recent workspace. (b) Edit: All the editing options required for editor are provided in Edit. (c) View: This menu link contains link for various perspectives and toolbars ,Word Wrap, full screen, it contains options to Toggle Current folder and also to Toggle All folders. (d) Search: It contains option to Find, Replace some text in the document,also option to Find Resources. 11 (e) Workspace: Workspace contains options to Creae New Workspace, Open Workspace, Close Workspace,Create New Project, Add Existing Project. (f) Build: Options for building the project, compiling a single fille, running the project, building and running the project, rebuilding the project and cleaning the project is provided in build. (g) GDC: Various Debugging options are provided in this link, it also provides option to toggle, Disable all BreakPoints, Delete all Breakpoints. (h) Plugins: Various plugins can be executed using this link. The link to manage the plugins isalso provided here. (i) Setting: This contains link for various settings, setting related to Environment.., Editor...,Compiler and debugger...,Global Variables... 2. Standard ToolBar Standard ToolBar is shown in figure 3.3. The buttons in Standard toolbar are (from left to right) figure 3.3 Standard ToolBar (a) New File: For creating a new project. (b) Open File: For opening an already created project. (C) Relode File: To relode a file. (d) Save: To save the file open in active editor. (e) Save all: To save all the files for the current/selected project. (f) Close File: To Close open in active editor. (g) Cut::To cut the selected/highlighted part in editor (h) Copy: To copy the selected/highlighted part in editor (i) Paste: To paste the cut/copy message in editor (j) Undo: To undo the executed action (k) Redo: To redo the undone action (n) Toggle Bookmark:Provides various options for setting Bookmarks. 12 4. Working With CodeLite on Ubuntu 1. Go to Workspace in menu bar and click Create New Workspace. 13 2. Go to Workspace in Menu bar and click Create New Project. 14 3. Double click src folder on the left pane and then click on filename.cpp . 4. Go to Build in Menu bar and click Compile Current File or (Ctlr+F7). 15 5. Go to Build in Menu bar and click Build Project or (F7). 6. Go to Build in Menu bar and click Run or(Ctrl+F5) 16 5. Working With CodeLite on Windows 5.1 Writing a new c/c++ program To create a new project: Workspace -->New Workspace(Enter a name for Workspace). Workspace --> New Project(Enter a name for Project). For compilation: Build --> compile current file or press ctrl F-7 To Run : Build --> Run or press ctrl F-5 17 18 .