Atmel Studio 6 tips, tricks & features

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Device programming
The [/Debug/Start without debugging] command is a quick way to program your device, instead of going through the numerous keystrokes and mouseclicks needed to get your device programmed through the [/Tools/Device programming] interface.
You may have to select your programmer as the tool to use before you get this to work the first time. The simulator won't work for programming a device.

Rectangular selection
By holding down the [Alt] key while making a selection in the editor, the selection will have a rectangular outline. Rectangular selections can be copied, cut and pasted just like any other selection.
This is very handy in certain editing operations, but may require a little practice to get used to.

Pasting code - avoiding reformatting
When you paste a block of code the editor sometimes applies some reformatting to it. If you want to keep the original format, hit [Ctrl]+[Z] after pasting to undo the reformatting.

(This "feature" is rather annoying - why does the editor do that in the first place ?)

Sid

Life... is a state of mind

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Split window editing
Above the vertical scroll bar, there is a button to split the window. Drag to size the split.

Each pane may be scrolled separately. Either pane may be used to edit.

This is useful when you want to reference one part of a source file while editing another part of it.

Sid

Life... is a state of mind

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
This is very handy in certain editing operations
Loved the feature in Word Star (20+ years ago for the youngins), great for edting big tables when you just want to copy columns of text.

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Trying them now :D

If you don't know my whole story, keep your mouth shut.

If you know my whole story, you're an accomplice. Keep your mouth shut. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I noticed on one of the atmel videos several lines of code were highlighted and then some key sequence was done and all lines were commented. //
This was also undone. Does anyone know how to do this ?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ctrl+K, Ctrl+C
(Edit/Advanced/Comment Selection)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Binary editor (and other editors, as well)
Atmel Studio offers several editors, although most of us only use the text editor. Sometimes, it is helpful to see what exactly is in a file – even what would appear to be a text file.

To select the editor to use for any given file, use [/File/Open]. Locate the file like you normally would, and select it, but don’t hit [Enter] or click [Open]. Instead, click the down arrow to the right of the [Open] button. Now select [Binary editor] or any other editor you want to use.

In the binary editor, you can edit the file either in the hex codes on the left, or in the textual representation on the right.

Also, if the file is already added to your project you can rightclick it in the Solution Explorer and select [Open with] to select an editor.

Sid

Life... is a state of mind

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Uninstall ASF for shorter startup time
The startup time for AS6 is greatly reduced if ASF is uninstalled. It can be uninstalled from the Windows Control Panel.

(This is obviously not a good idea if you use ASF.)

If you want to keep ASF, look at Dean's comments in this thread for instructions on how to remove unnecessary files.

Sid

Life... is a state of mind