Welcome to Dream.In.Code
Become a C++ Expert!

Join 149,497 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,376 people online right now. Registration is fast and FREE... Join Now!




[C Language] Visual Studio 2005 button/shortcut for repetitive tasks

 
Reply to this topicStart new topic

[C Language] Visual Studio 2005 button/shortcut for repetitive tasks

bestbat
24 Feb, 2007 - 02:32 PM
Post #1

New D.I.C Head
*

Joined: 14 Feb, 2007
Posts: 32


My Contributions
I'm just wondering are there any buttons/shortcuts in visual studio for repetitive tasks,
e.g. rather than typing
CODE
printf("blah blah");
everytime
it would be easier to press a button which inserted
CODE
printf("");


This post has been edited by bestbat: 24 Feb, 2007 - 02:33 PM
User is offlineProfile CardPM
+Quote Post

NickDMax
RE: [C Language] Visual Studio 2005 Button/shortcut For Repetitive Tasks
24 Feb, 2007 - 03:23 PM
Post #2

2B||!2B
Group Icon

Joined: 18 Feb, 2007
Posts: 2,867



Thanked: 53 times
Dream Kudos: 550
My Contributions
confused.gif I don't know about 2005. In VC6 you can impliment this in macros, but in an odd ironic twist you need to learn VBA. If you loath basic (some c programmers do) then you can write add-ins which actually can be VERY powerful tools. There are a lot of Visual Studio add-ins out there with code formatting, snipet manegment, etc. What I would like is a better syntax coloring add in, and bracket matching.
User is offlineProfile CardPM
+Quote Post

Jayman
RE: [C Language] Visual Studio 2005 Button/shortcut For Repetitive Tasks
24 Feb, 2007 - 03:47 PM
Post #3

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 7,303



Thanked: 66 times
Dream Kudos: 500
Expert In: Everything

My Contributions
QUOTE
What I would like is a better syntax coloring add in, and bracket matching.

Amen to that.

And yes in 2005 you are still limited to Macros and Add-Ins.

The good news is that macros are as easy to create today as pressing the Record button. And then performing the actions that you want the macro to perform. Assign a shortcut key to it and now you have a way to do many tasks with the click of one key.

The following link is tutorials for Macros, as well as other ways to extend the functionality of VS.

Extending Visual Studio.
User is online!Profile CardPM
+Quote Post

bestbat
RE: [C Language] Visual Studio 2005 Button/shortcut For Repetitive Tasks
24 Feb, 2007 - 03:53 PM
Post #4

New D.I.C Head
*

Joined: 14 Feb, 2007
Posts: 32


My Contributions
Thanks both of you!
User is offlineProfile CardPM
+Quote Post

NickDMax
RE: [C Language] Visual Studio 2005 Button/shortcut For Repetitive Tasks
24 Feb, 2007 - 04:21 PM
Post #5

2B||!2B
Group Icon

Joined: 18 Feb, 2007
Posts: 2,867



Thanked: 53 times
Dream Kudos: 550
My Contributions
QUOTE(jayman9 @ 24 Feb, 2007 - 04:47 PM) *
Amen to that.


sad.gif I was really hoping to hear that 2005 had better syntax coloring and at LEAST bracket matching.
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 1/7/09 06:14PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month