Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
CodeVision AVR 1.25.7, user manual.pdf
Скачиваний:
230
Добавлен:
12.08.2013
Размер:
1.22 Mб
Скачать

CodeVisionAVR

2. CodeVisionAVR Integrated Development Environment

2.1 Working with Files

Using the CodeVisionAVR IDE you can view and edit any text file used or produced by the C compiler or assembler.

2.1.1 Creating a New File

You can create a new source file using the File|New menu command or by pressing the Create new file button on the toolbar.

A dialog box appears, in which you must select File Type|Source and press the Ok button.

A new editor window appears for the newly created file.

The new file has the name untitled.c. You can save this file under a new name using the File|Save As menu command.

© 1998-2007 HP InfoTech S.R.L.

Page 9

CodeVisionAVR

2.1.2 Opening an Existing File

You can open an existing file using the File|Open menu command or by pressing the Open file button on the toolbar.

An Open dialog window appears.

You must select the name and type of file you wish to open.

By pressing the Open button you will open the file in a new editor window.

2.1.3 Files History

The CodeVisionAVR IDE keeps a history of the opened files.

The most recent eight files that where used can be reopened using the File|Reopen menu command.

© 1998-2007 HP InfoTech S.R.L.

Page 10

CodeVisionAVR

2.1.4 Editing a File

A previously opened or a newly created file can be edited in the editor window by using the Tab,

Arrows, Backspace and Delete keys.

Pressing the Home key moves the cursor to the start of the current text line. Pressing the End key moves the cursor to the end of the current text line. Pressing the Ctrl+Home keys moves the cursor to the start of the file. Pressing the Ctrl+End keys moves the cursor to the end of the file.

Portions of text can be selected by dragging with the mouse.

You can copy the selected text to the clipboard by using the Edit|Copy menu command, by pressing the Ctrl+C keys or by pressing the Copy button on the toolbar.

By using the Edit|Cut menu command, by pressing the Ctrl+X keys or by pressing the Cut button on the toolbar, you can copy the selected text to the clipboard and then delete it from the file.

Text previously saved in the clipboard can be placed at the current cursor position by using the Edit|Paste menu command, by pressing the Ctrl+V keys or pressing the Paste button on the toolbar.

Clicking in the left margin of the editor window allows selection of a whole line of text.

Selected text can be deleted using the Edit|Delete menu command or pressing the Ctrl+Delete keys. The Edit|Print Selection menu command allows the printing of the selected text.

Dragging and dropping with the mouse can move portions of text.

Pressing the Ctrl+Y keys deletes the text line where the caret is currently positioned.

Selected portions of text can be indented, respectively unindented, using the Edit|Indent Block, respectively Edit|Unindent Block, menu commands or by pressing the Ctrl+I, respectively Ctrl+U keys.

You can find, respectively replace, portions of text in the edited file by using the Edit|Find, respectively Edit|Replace, menu commands, by pressing the Ctrl+F, respectively Ctrl+R keys, or by pressing the Find, respectively Replace buttons on the toolbar.

The Edit|Find Next, respectively Edit|Find Previous, functions can be used to find the next, respectively previous, occurrences of the search text. The same can be achieved using the F3, respectively Ctr+F3 keys.

Changes in the edited text can be undone, respectively redone, by using the Edit|Undo, respectively Edit|Redo, menu commands, by pressing the Ctrl+Z, respectively Shift+Ctrl+Z keys, or by pressing the Undo, respectively Redo buttons on the toolbar.

You can go to a specific line number in the edited file, by using the Edit|Goto Line menu command or by pressing the Alt+G keys.

Bookmarks can be inserted or removed, at the line where the cursor is positioned, by using the

Edit|Toggle Bookmark menu command or by pressing the Shift+Ctrl+0...9 keys.

The Edit|Jump to Bookmark menu command or the Ctrl+0...9 keys will position the cursor at the start of the corresponding bookmarked text line.

If the cursor is positioned on an opening, respectively closing, brace then the Edit|Match Braces menu command or the Ctrl+M key will highlight, the portion of text until the corresponding matching closing, respectively opening brace. Pressing any key or clicking the mouse will hide the highlighting.

Clicking with the mouse right button opens a pop-up menu that also gives the user access to the above mentioned functions.

© 1998-2007 HP InfoTech S.R.L.

Page 11

CodeVisionAVR

2.1.5 Saving a File

The currently edited file can be saved by using the File|Save menu command, by pressing the Ctrl+S keys or by pressing the Save button on the toolbar.

When saving, the Editor will create a backup file with an ~ character appended to the extension.

All currently opened files can be saved using the File|Save All menu command.

2.1.6 Renaming a File

The currently edited file can be saved under a new name by using the File|Save As menu command. A Save dialog window will open.

You will have the possibility to specify the new name and type of the file, and eventually its new location.

© 1998-2007 HP InfoTech S.R.L.

Page 12