• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            牽著老婆滿街逛

            嚴以律己,寬以待人. 三思而后行.
            GMail/GTalk: yanglinbo#google.com;
            MSN/Email: tx7do#yahoo.com.cn;
            QQ: 3 0 3 3 9 6 9 2 0 .

            Visual Studio 2008 Shortcuts

            轉載自:http://www.itscodingtime.com/post/Visual-Studio-2008-Shortcuts.aspx

            Keyboard Shortcuts

            1. Ctrl-L to Cut Line to Clipboard

            ctrl_key_smallplus letter_l_small

            It's not necessary to highlight an entire line and then hit the delete key. Just hit "Ctrl-L" and the line the cursor is currently on will be removed and copied to the clipboard. "Ctrl-x" performs the same operation by default.

             

            2. Shift-F5 to Stop Debugging

            shift_key_smallplus f5_key_small

            To stop debugging a project, use "Shift-F5". Much quicker than going through the Debug menu.

             

            3. Create new property

            propplustab_key2_smallplustab_key2_small

            Add a new property in code by typing prop then hitting the Tab key twice. This "prop-TAB-TAB" combination will create a property template that looks like:

               1: public int MyProperty { get; set; }
            

             

            4. Comment/Uncomment code

            ctrl_key_smallplus letter_k_smallplus letter_c_small

            You can comment or uncomment code by highlighting the respective code block and hitting "Ctrl-k-c" to comment or "Ctrl-k-u" to uncomment. This shortcut even works in .aspx pages.

            image

            image

             

            5. Reformat a block of code

            ctrl_key_smallplus letter_k_smallplus letter_f_small

            If you've just pasted in a bunch of code where the formatting is screwed-up, just highlight it and hit "Ctrl-k-f" to format.

            6. Reformat entire document

            ctrl_key_smallplus letter_k_smallplus letter_d_small

            If you want to reformat all of the code in the current document, hit "Ctrl-k-d".

            7. Find matching curly brace or region

            ctrl_key_smallplus right_curly_brace_paren_small

            Position the cursor next to a curly brace ('{' or '}') and hit "Ctrl-}'. This will toggle the cursor between the matching braces.

            image

            This shortcut will also work for #region...#endregion's.

            8. View coding window full-screen

            alt_key_smallplus shift_key_smallplus enter_key_small  

            Hitting "Alt+Shift+Enter" will make the coding window full-screen and (temporarily) drop most other windows from view. Restore to your usual window configuration by de-pressing the "Full Screen" button at top:image

            9. Search without the dialog

            ctrl_key_smallplus f3_key_small

            ctrl_key_small plus shift_key_smallplus f3_key_small 

            Just highlight the text you want to search on and hit "Ctrl-F3" to search down or "Ctrl-Shift-F3" to search up.

            10. Toggle Outlining

            ctrl_key_smallplus letter_k_smallplusletter_l_small  

            If you want to open (expand) or close (collapse) all outlining in a code file, use "Ctrl-k-l". It works like a toggle, alternatively expanding or collapsing all outlining in the current file.

            11. Code Snippets

            ctrl_key_smallplusletter_k_smallplusletter_s_small  

            Easily open a code snippets selection dropdown with "Ctrl-k-s":

            image

             

            12. Go to Definition

            f12_key_small

            Put the cursor on an item and hit 'F12'. Instant 'go to definition' functionality.

            13. Add/Remove Breakpoint

            f9_key_small

            'F9' will toggle breakpoints for the current line.

            14. Find Usages

            shift_key_smallplusf12_key_small 

            'Shift-F12' will find all usages of the item the cursor is currently on and display the "Find Usages" dialog (this is ReSharper's version of the dialog; standard VS2008 looks a little different):

            image

            Mouse Shortcuts

            1. Right-click to add references

            Say you've just entered a line of code like the following where the red squiggly indicates you haven't yet added the necessary reference:

            image

            You could jump to the top of the file and type it in manually, or you could right-click on the squiggly-indicated word and choose "Resolve | using …":

            image

            This will add the needed reference for you, no typing required.

            2. Remove unused references

            Many times there are references included in the "using…" section that are not needed. Removing the unnecessary ones is easy: Right-click anywhere on the code file, select "Organize Usings | Remove Unused Usings".

            image

            3. Sort usings

            To sort your "usings…" section, right-click anywhere on the code file and select "Organize Usings | Sort Usings".

            image

            4. Open a file's "containing folder"

            Right-click on an open file's tab, select "Open Containing Folder".

            image

            5. Copy a file's folder location to the clipboard

            Right-click on an open file's tab, select "Copy Full Path".

            image

            6. Close all files but "this" one

            If you have more than one file open, you can right-click on one of the file tabs (the one which you want to stay open) and choose "Close All But This". This will close all other files.

            image

            7. Close tab 

            A quick way of closing a tab is to use the mouse scroll button. Hover the mouse cursor over the tab, click the mouse scroll button, and the file (and it's tab) will close.

            Conclusion

            Again, if anyone has anything I missed (I know there's got to be a lot), leave a comment. I'd love to learn some new ones!

            Sources:

            posted on 2010-09-15 22:40 楊粼波 閱讀(832) 評論(1)  編輯 收藏 引用

            評論

            # re: Visual Studio 2008 Shortcuts 2010-10-15 10:22 carl

            very helpful, thank you :)  回復  更多評論   

            欧美性猛交xxxx免费看久久久| 国产激情久久久久影院小草| 狠狠色丁香久久婷婷综合_中| 亚洲国产精品狼友中文久久久| 欧美与黑人午夜性猛交久久久| 久久久久久精品免费看SSS| 久久婷婷五月综合97色直播| 99久久精品国产高清一区二区 | 久久婷婷五月综合97色直播| 久久中文字幕精品| 国产亚洲美女精品久久久久狼| 久久久久久国产精品美女| 午夜天堂av天堂久久久| 国产三级精品久久| 男女久久久国产一区二区三区| 久久99久久成人免费播放| 色综合久久无码五十路人妻| 久久久青草久久久青草| 久久久这里只有精品加勒比| 日韩精品国产自在久久现线拍| 久久久久久久精品成人热色戒| 狠狠色伊人久久精品综合网| 精品无码久久久久国产| 久久久久高潮综合影院| 久久毛片免费看一区二区三区| 国产精品99久久精品| 国产毛片欧美毛片久久久| 婷婷久久综合| 污污内射久久一区二区欧美日韩 | 老司机午夜网站国内精品久久久久久久久 | 精品熟女少妇AV免费久久| 久久精品国产精品亚洲| 91精品观看91久久久久久| 久久影院综合精品| 伊人久久大香线蕉av不变影院| 欧美性猛交xxxx免费看久久久| 久久se这里只有精品| 亚洲欧美国产精品专区久久| 欧美亚洲日本久久精品| 久久久久久久波多野结衣高潮| 狠狠色婷婷久久一区二区|