Has anyone plugged in custom snippets? If so of what?
I got so tired of retyping out the components of 'execute non query' or 'adapter' calls I broke down and added my usual format to a snippet. I'll probably forget how to piece the code together in a few weeks, but by then my monkey reflexes kick in and I can zone out while pushing the button for my calls.
Common snippets...
Page 1 of 13 Replies - 555 Views - Last Post: 25 April 2011 - 08:30 AM
Replies To: Common snippets...
#2
Re: Common snippets...
Posted 24 April 2011 - 08:00 PM
I have the following snippets on "quick dial":
- WebRequest / response handling
- OAuth signature generation
- Stream to byte[] conversion
- Converters (for Silverlight applications) - e.g. IntToString, BoolToVisibility
- Tons of managed WinAPI implementations
#3
Re: Common snippets...
Posted 24 April 2011 - 08:21 PM
I need to start creating more snippets. I mostly work with asp.net and only snippets I've created so far are ones to create properties that use ViewState or Session to store and retrieve the values. There are lots of instances where I think to myself that I should convert what I'm doing into a snippet but then I never take the time to actually do so. It would probably be better to take the little bit of time now to create the snippet to save lots of time in the future by reducing the repetitive typing.
#4
Re: Common snippets...
Posted 25 April 2011 - 08:30 AM
I added 6 snippets for my latest project. Mainly dealing with database access. I created a snippet for getting one record back with no parameters, one record with params, multiple records no params, multiple records with params, non-query with no params, and non-query with params.
So my multiple records with params would look like this..
Then I just fill in the necessary information. Man this made it so much easier than typing this same code 200 times.
So my multiple records with params would look like this..
Spoiler
Then I just fill in the necessary information. Man this made it so much easier than typing this same code 200 times.
Page 1 of 1
|
|

New Topic/Question
Reply





MultiQuote






|