v5-11 ctl + R, ctl + R refactor rename ctl + alt + R view web browser ctl + R, T run tests in current context ctl + R, ctl + T debug tests in current context ctl + R, A run all tests in solution ctl + R, ctl + A debug all tests in solution ctl + \, ctl + M tfs team explorer alt + V, E, I tfs view history alt + V, E, H tfs view pending changes alt + V, E, S tfs view source code explorer ctl + M, ctl + G goto mvc view/controller ctl + I incremental search ctl + shf + I reverse incremental search ctl + F3 find using current selection ctl + ] match braces, opening & closing ctl + shf + ] select code between braces ctl + M, ctl + H hide selection ctl + M, ctl + U unhide selection ctl + M, ctl + O collapse to definitions ctl + M, ctl + T collapse tag - htm, aspx ctl + M, ctl + M toggle outline expansion, current section ctl + M, ctl + L toggle all outlining ctl + K, ctl + K toggle bookmark ctl + E, ctl + W toggle word wrap ctl + K, ctl + C comment selection ctl + K, ctl + U uncomment selection ctl + K, ctl + X code snippet ctl + K, ctl + B code snippet manager ctl + shf + U uppercase selection ctl + U lowercase selection ctl + alt + O output window ctl + alt + C call stack ctl + alt + I immediate window ctl + alt + A command window ctl + alt + T document outline window, use w/htm files ctl + alt + U modules window ctl + \, E error list window ctl + \, ctl + E error list window ctl + alt + V, A autos window ctl + alt + V, L locals window shf + F9 quick watch ctl + alt + W, 1 watch 1 window (1-4) ctl + alt + B breakpoints window ctl + F9 toggle enable breakpoint ctl + shf + F9 delete all breakpoints ctl + K, ctl + W bookmark window ctr + \, D code definition window ctl + - navigate backward ctl + shf + - navigate forward ctl + F6 navigate open windows forward ctl + shf + F6 navigate open windows backward ctl + tab select open windows dialog ctl + shf + tab select open windows dialog backward ctl + alt + down arrow list open documents ctl + alt + P attach to process shf + alt + enter toggle full screen alt + U restore from full screen ctl + f2 focus on navigation bar alt + W, W show windows window alt + - show float/dock window menu F5 start debugging ctl + F5 start without debugging shf + F5 stop debugging alt + num + * show next statement ctl + shf + F10 set next statement ctl + F10 run to cursor shf + F10 context menu, popup ctl + shf + B build solution alt + B, R rebuild solution alt + B, U build current project alt + B, E rebuild current project alt + B, G build webform page/user control ctl + break cancel build ctl + alt + L view solution explorer, highlight active file alt + enter show file properties/property pages for active item in solution explorer shf + F4 show property pages for active project/solution in solution explorer F4 show file properties for active item in solution explorer ctl + F4 close active code window F9 toggle breakpoint F10 debug step over F11 debug step into shf + F11 debug step out f12 goto definition ctl + alt + J object browser ctl + alt + S server explorer //command window (ctl + alt + A) File.Close closes currently selected window, including solution explorer File.TfsHistory tfs history for currently selected file View.F#Interactive f# interactive //F# ctl + alt + F f# interactive alt + enter send selected code to f# interactive //SQL ctl + shf + E execute sql ctl + F5 validate sql syntax ctl + shf + alt + R show/hide sql results pane, toggle ctl + T show results as text ctl + shf + E show results as grid
Showing posts with label print. Show all posts
Showing posts with label print. Show all posts
8/20/10
Visual Studio 2010 Keyboard Shortcuts
4/8/10
PowerShell File Concatenation Script
Concatenates text files into a single file for printing, text-zip-attachments, etc.
File index is included at the top of the output file.
Concatenate all text files
Concatenate files modified on Jan 1 2011 or later
File index is included at the top of the output file.
function concatFiles($outFile)
{
begin
{
$date = get-date
[string[]] $filelist = @() #empty string array
$filebreak = '-'*32
}
process
{
#for process-block vars, append data using +=
$_.fullname #or "$_", console - show file name
$filelist += $_.fullname
$filedata += "$filebreak`nfile: $_`n"
$filedata += gc $_.fullname | out-string #use out-string to restore linebreaks
}
end
{
$filecount = $filelist.length
"{0} files" -f $filecount #console - show file count
$fileheader = "{0}`n" -f $date.toString('MM-dd-yy HH:mm:ss')
$fileheader += "concat output file: {0}`n{1} files" -f $outFile, $filecount
$fileheader >> $outFile
$filelist >> $outFile
$filedata + $filebreak >> $outFile
}
}Concatenate all text files
gci c:\docs\* -inc *.txt -rec | concatFiles c:\temp\out.txt #powershell console output C:\docs\file1.txt C:\docs\file7.txt 2 files #file output 03-01-11 14:09:22 concat output file: c:\temp\out.txt 2 files C:\docs\file1.txt C:\docs\file7.txt -------------------------------- file: C:\docs\file1.txt file 1 ... -------------------------------- file: C:\docs\file7.txt file 7 ... --------------------------------
Concatenate files modified on Jan 1 2011 or later
$files = "*.htm","*.css","*.js"
gci c:\docs\* -inc $files -rec -force -ea silentlycontinue |
?{$_.lastwritetime -gt [datetime]'01-01-2011'} | concatFiles c:\temp\out.txt
Labels:
concat,
concatenate,
file,
index,
powershell,
print,
text-zip
Subscribe to:
Posts (Atom)