Daces Zariņas emuāri

Spraudnis Visual Studio 2008 - CodeRushX

Visual Studio 2008 ir  pieejams bezmaksas koda refaktorēšanas rīks CodeRushX, kuru var novilkt šeit. Kā teikts šī spraudņa mājas lapā ar šo spraudni var:

  • parādīt "visas" atsauces;
  • dubultot rindu;
  • palielināt vai saspiest sekciju;
  • veikt gudras starpliktuves (angļu val. clipboard) operācijas;
  • ātrais failu pārvietošanas ekrāns;
  • u.c.

Kā arī veikt šādas koda refaktorēšanas operācijas:

  • pievienot  figūriekavas, piem., if nosacījumā;
  • automātiski kombinēt nosacījumus (piem., ir vairāki if nosacījumi, kurus var apvienot vienā if nosacījumā);
  • saīsināt šādu if nosacījumu -  if (a) b = 10; else b = 20; uz šādu - b = a ? 10 : 20;
  • izmantot String.Format rakstzīmju virknes saskaitīšanas vietā;
  • lietot StringBuilder rakstzīmju virknes saskaitīšanas vietā;
  • u.c.

Pilnu šī spraudņa iespēju sarakstu var apskatīt šeit.

Pēc apraksta spiežot man radās tāds iespaids, ka tas varētu būt kaut kas līdzīgs spraudnim Resharper, tikai par brīvu un ar mazāk "iespējām",  taču uzinstalējot šo spraudni un palasot un palietojot šo spraudni manas domas krasi mainījās.

Pieinstalējot šo spraudni Visual Studio 2008, nospiežot peles labo pogu klases kodā parādās divas jaunas iespējas Refactor! un Code! :

Lai veiktu koda refaktoringu, tajā vietā, kur var veikt koda refaktoringu, ir nepieciešams nospiest izvēlni Refactor!.  Apskatot visas iespējas, ko šis spraudnis var veikt man radās iespaids, ka ir šī spraudņa izstrādātāji ir vairāk ir domājuši par vizuālajiem efektiem nevis par koda refatoringu, piem., šāds vizuālais efekts, lai pievienotu figūriekavas man liekas lieks:

Ja paskatās uz koda refaktorēšanas funkcionalitāti, tad  tā varēja būt labāka, un gadījumi, kur kods tiek mainīts uz optimālāku kodu, varētu būt daudz vairāk. Šis spraudnis veic kopā 25 koda pārveidošanas operācijas.

Vienīgais, kas man patika šim spraudnim, bija ātrā failu meklēšanas iespēja, kuru var aktivizēt nospiežot taustiņu kombināciju CTRL + Alt + F, var meklēt visus failus, kas ir izveidoti šai projektā:

Comments

Krišs said:

Izskatās, ka būtu bijis ļoti noderīgs VS2003, bet pašlaik jau zaudējis aktualitāti. Divas minētās lietas, kas ļoti pietrūka agrākajās VS - "find all references" un "find in files" tagad jau ir studijas pamatkomplektā. Līdz ar to šim spraudnim atliek vairs tikai būt skaistam :-)

# February 23, 2009 9:27 PM

Valdis Iljuconoks said:

jaukākais ir tas, ka Eclipse bez jebkādiem spraudņiem ir laba diezgan un vēl vairāk :)

kaut gan Eclipse sastāv tikai un vienīgi no daudziem spraudņiem - jautājums paliek tikai par to, vai šis spraudis ir jau pieejams standarta instalācijā vai tas ir jāliek atsevišķi.

# February 24, 2009 8:28 AM

dace.zarina said:

Es neteiktu, ka Visual Studio 2008 bez spraudņiem ir slikta :)

# February 24, 2009 6:48 PM

ivars.arins said:

Refactor! ir viena sīka, bet ļoti ērta lieta. Izmantojot šo spraudni, atverošās un aizverošās figūriekavas tiek savienotas ar neuzkrītošu, bet pamanāmu līniju.

Vizuāls sīkums, bet atvieglo koda pārskatīšanu.

# February 25, 2009 10:23 AM

Sharleen Hilgefort said:

I really like your website.. extremely great hues & theme. Did you create this web site yourself? Plz reply again as I’m looking to create my own web site and would like to know wheere u obtained this from. many thanks

# November 16, 2011 11:29 PM

Leonardo Hanning said:

Everything is quite open and quite clear explanation of troubles. was truly details. Your web site is quite useful. Many thanks for sharing.

# November 18, 2011 11:42 AM

Elana Lefrancois said:

Hello there! I could have sworn I’ve been to this weblog just before but following searching via many of the submit I recognized it is new to me. Anyways, I’m surely content I discovered it and I’ll be book-marking and checking back again often!

# November 18, 2011 4:42 PM

Zachery Ganibe said:

Fantastic line up. We are going to be linking to this wonderful write-up on our web site. Sustain the great composing.

# November 18, 2011 10:02 PM

Mireille Berka said:

Your type is so distinctive when compared with a lot of others. Thanks for publishing whenever you possess the chance,Guess I'll just make this bookmarked.two

# November 19, 2011 3:20 AM

Antoinette Ephriam said:

People are yours alright! . We at the very least should get these individuals stealing pictures to start out running a blog! They almost certainly just did a picture lookup and grabbed them. They seem excellent although!

# November 19, 2011 6:45 PM

Kaylene Galvin said:

I really like your web site.. extremely wonderful hues & theme. Did you create this internet site yourself? Plz reply again as I’m looking to create my own website and would like to know wheere u acquired this from. many thanks

# November 19, 2011 11:55 PM

Barbera Powderly said:

I would like to thnkx for that efforts you might have place in producing this website. I'm hoping the same high-grade weblog article from you in the upcoming as well. In fact your creative producing abilities has inspired me to have my own weblog now. Truly the running a blog is spreading its wings quickly. Your write up is actually a great example of it.

# November 20, 2011 4:58 AM

Virgil Gallero said:

Very good data. Lucky me I reach on your web site by accident, I bookmarked it.

# November 20, 2011 9:55 AM

Jerica Wanger said:

Your fashion is so exclusive in comparison with a lot of others. Thanks for publishing if you possess the option,Guess I'll just make this bookmarked.two

# November 20, 2011 3:04 PM

Benedict Afton said:

That is a excellent ideas specially to individuals new to blogosphere, quick and exact information… Many thanks for sharing this one particular. A should study report.

# November 20, 2011 8:26 PM

Chara Vongxay said:

Following all, what an excellent internet site and useful posts, I'll upload inbound website link - bookmark this website web site? Regards, Reader.

# November 21, 2011 1:09 PM

Ross Niskanen said:

I needed to thanks for this wonderful examine!! I undoubtedly experiencing each minor little bit of it I've you bookmarked to check out out new things you post…

# November 21, 2011 6:36 PM

Gilbert Apsey said:

I really like it when men and women arrive collectively and share opinions, excellent website, preserve it up.

# November 22, 2011 12:06 AM

Randee Kippel said:

Everything is quite open and extremely clear explanation of troubles. was truly info. Your internet site is extremely useful. Many thanks for sharing.

# November 22, 2011 5:23 AM

Debi Pursley said:

Fantastic article. I'm struggling with several these issues.

# November 22, 2011 10:39 AM

google+ circles said:

cx89fb Major thankies for the blog post. Much obliged.

# March 23, 2012 4:22 AM

Motivation to lose weight said:

2Fc81T Thanks again for the article.Really looking forward to read more. Keep writing.

# April 9, 2012 1:06 AM

cheap internet marketing said:

u2J3x7 Fantastic blog post.Thanks Again. Want more.

# April 18, 2012 6:48 PM

Bristol Airport Hotels said:

VP1nye Thank you ever so for you article post.Really thank you! Keep writing.

# April 18, 2012 11:22 PM

buy oem software said:

RAHiiD I really like and appreciate your blog article.Much thanks again. Awesome.

# May 2, 2012 2:47 AM

cheap oem software said:

W1lJBP Very neat blog article.

# August 16, 2012 1:49 PM

cheap bookmarking service said:

Q8Y4EM Thanks-a-mundo for the post.Thanks Again. Keep writing.

# October 9, 2012 6:00 AM

bookmarking submission said:

gA4tGO I really liked your blog article.Really thank you! Cool.

# October 29, 2012 3:26 AM

buy viagra online said:

hJDnic Awesome blog article.Thanks Again. Fantastic.

# December 23, 2012 4:32 PM

bookmaring service said:

zoR7Mo Im grateful for the blog article.Really looking forward to read more. Cool.

# March 15, 2013 2:53 PM

social bookmarking service said:

exQMGD Thank you for your article post.Really looking forward to read more. Much obliged.

# March 24, 2013 10:28 PM

buy social bookmarks said:

74jigV Hey, thanks for the blog post.Really thank you! Keep writing.

# April 3, 2013 12:12 PM

social bookmarking service said:

6WD0QK Hey, thanks for the blog post.Thanks Again. Really Cool.

# April 7, 2013 8:45 PM

Wooden said:

soin visage soin visage soin visage soin visage

# May 10, 2013 6:26 AM
Leave a Comment

(obligāts) 

(obligāts) 

(brīvizvēles)

(obligāts)