Suggested improvement: Button to "comment out lines&quo

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

When I code in C I prefer to use // instead of /* ... */ to comment out code.

In othee IDEs I have used you can select a block of text and the go Edit > comment and it will add "//" before each line. (...usually there is an "uncomment" button too).

This means when I look at my code I can instantly see which lines are commented out rather than searching for the beginning "/*" to determine it.

I don't see this as a critical feature but as a suggestion that would be a nice option for those people who want to use it.

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

G'day Nigel!

Some editors will mark commented tedt in another color, italics or some such, both for // and /* */.

There is another reason to use // though. The /* */ construct cannot be nested. Say you want to comment a piece of code thqat has /* */ comments in in. Now you cant use /* */ for the commenting out as this will yiled a nested construct. // to the rescue!

OTing somewhat: I'm really hoping that the next major revision of AVR Studio will be based on eg Eclipse. This would make all sorts of plug-ins available. And you'd have a far better editor than today. And it would be runnable on other platforms than Windoze. As the AVR32 Studio is Eclipse-based my hopes for the AVR(8) Studio might not be in vain...

Greetings from a hot Lund (and the dog is just fine b.t.w., cf: http://flickr.com/photos/foreby/... )

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

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

Yeah I totally agree - the only drawback of Eclipse is the resource usage but AVRStudio is heading the same way anyway. If that is an issue there is always Emacs.

One pet hate about AVRStudio is the requirement to upgrade core Win2k files when I install it on a fresh Win2k box. I don't have the same issues with Eclipse on the same box.

If AVRStudio moved to Eclipse and had a Linux package I would finally be free to not boot Windows on my development machine - AVRStudio is the only main piece of software keeping me on Windows these days.

BTW check your PMs :)

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

Quote:
If that is an issue there is always Emacs.

OK, so you are seriously sick and need help... :wink:

Quote:
One pet hate about AVRStudio is the requirement to upgrade core Win2k files when I install it on a fresh Win2k box.

That could have been written "One pet hade about windows is the requirement to upgrade core OS files when installing an application".

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

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

Quote:
OK, so you are seriously sick and need help
Could be worse, he could have mentioned VI...

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Dingo_aus wrote:
If AVRStudio moved to Eclipse and had a Linux package I would finally be free to not boot Windows on my development machine - AVRStudio is the only main piece of software keeping me on Windows these days.
Some folks have reported success using AVRStudio on Wine. Do a search on the forum for AVRStudio and Wine.

I keep meaning to try this on my Linux system at home and just don't get around to it.

Stu

Engineering seems to boil down to: Cheap. Fast. Good. Choose two. Sometimes choose only one.

Newbie? Be sure to read the thread Newbie? Start here!

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

Quote:
Some folks have reported success using AVRStudio on Wine
hmmm Shiraz or Merlot?
Don't go much for whites though...

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

I think only older versions of AVRStudio work under wine. I'll try it and report back.

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

js wrote:
Quote:
Some folks have reported success using AVRStudio on Wine
hmmm Shiraz or Merlot?
Don't go much for whites though...
:evil: Bloody Austr_ah_lians! :P G'day to yeh in Brizbin and Melbin.

As for AVR Studio on Linux, my information is a bit out of date. The Eclipse package for AVR doesn't seem to be up to par yet and, as you say, running AVR Studio on Wine is, well, problematic. As someone said before, that may put you to the level of Emacs or (heaven forbid!) vi (vim?). Of course, gdb works, and I hear there's some sort of gui for it.

I used to prefer typing commands in. About a decade ago. :twisted:

Stu

Engineering seems to boil down to: Cheap. Fast. Good. Choose two. Sometimes choose only one.

Newbie? Be sure to read the thread Newbie? Start here!

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

Just found this thread. If you look at the end, aor_dreamer has posted a How-To on installing the latest & greatest AVR Studio (4.14) on Ubuntu. Check it out!

Stu

Engineering seems to boil down to: Cheap. Fast. Good. Choose two. Sometimes choose only one.

Newbie? Be sure to read the thread Newbie? Start here!

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

Quote:
G'day to yeh in Brizbin and Melbin.
What about the Syndey people? Camberrians, Cairnians, Perthians, Adelaideians...now they make pretty good Wine...

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

js wrote:
What about the Syndey people?
Sorry 'bout that, John. You're just a little further north than I thought you were.

js wrote:
Camberrians, Cairnians, Perthians, Adelaideians...now they make pretty good Wine...
Eww! And do you make your baby oil from real babies? :P :evil:

Stu

Engineering seems to boil down to: Cheap. Fast. Good. Choose two. Sometimes choose only one.

Newbie? Be sure to read the thread Newbie? Start here!