{"id":563,"date":"2014-04-30T23:25:36","date_gmt":"2014-04-30T23:25:36","guid":{"rendered":"http:\/\/blog.wholetomato.com\/?p=563"},"modified":"2019-05-03T17:28:51","modified_gmt":"2019-05-03T21:28:51","slug":"scope-in-multi-project-solutions","status":"publish","type":"post","link":"https:\/\/stage.wholetomato.com\/blog\/scope-in-multi-project-solutions\/","title":{"rendered":"Scope of Refactoring in Multi-Project Solutions"},"content":{"rendered":"<p>There is a subtle connection among\u00c2\u00a0the Find References, Rename, and Change Signature commands of Visual Assist, and if you didn&#8217;t perceive the connection, you might believe something was awry\u00e2\u20ac\u201dwith your memory.<\/p>\n<p>The three commands\u00e2\u20ac\u201dFind References, Rename, and Change Signature\u00e2\u20ac\u201dshare a\u00c2\u00a0setting to display references from, or refactor in, the current\u00c2\u00a0project or all projects. The shared setting prevents you from inadvertently reviewing\u00c2\u00a0code with\u00c2\u00a0Find References in one scope, then refactoring your code in a broader or narrower scope.<\/p>\n<p>If you restrict Find References to the current project, the default scope of the next Rename or Change Signature is also the\u00c2\u00a0current project. If you broaden the scope of Find References to all projects, the default scope of the next Rename or Change Signature is also all projects.<\/p>\n<p>When the scope of Find References is set to all projects, multiple project nodes appear in the results.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/04\/blogmultiprojectfindall.png?ssl=1\"><img decoding=\"async\" data-attachment-id=\"626\" data-permalink=\"https:\/\/stage.wholetomato.com\/blog\/scope-in-multi-project-solutions\/blogmultiprojectfindall\/\" data-orig-file=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/04\/blogmultiprojectfindall.png?fit=565%2C198&amp;ssl=1\" data-orig-size=\"565,198\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"blogMultiProjectFindAll\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/04\/blogmultiprojectfindall.png?fit=300%2C105&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/04\/blogmultiprojectfindall.png?fit=565%2C198&amp;ssl=1\" class=\"alignnone size-full wp-image-626\" src=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/04\/blogmultiprojectfindall.png?resize=565%2C198&#038;ssl=1\" alt=\"blogMultiProjectFindAll\" width=\"565\" height=\"198\" srcset=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/04\/blogmultiprojectfindall.png?w=565&amp;ssl=1 565w, https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/04\/blogmultiprojectfindall.png?resize=300%2C105&amp;ssl=1 300w, https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/04\/blogmultiprojectfindall.png?resize=360%2C126&amp;ssl=1 360w\" sizes=\"(max-width: 565px) 100vw, 565px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>After a Find References whose scope was all projects, the\u00c2\u00a0Rename and Change Signature dialogs open with the same scope\u00e2\u20ac\u201dall projects.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/04\/blogmultiprojectrename.png?ssl=1\"><img decoding=\"async\" data-attachment-id=\"627\" data-permalink=\"https:\/\/stage.wholetomato.com\/blog\/scope-in-multi-project-solutions\/blogmultiprojectrename\/\" data-orig-file=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/04\/blogmultiprojectrename.png?fit=492%2C231&amp;ssl=1\" data-orig-size=\"492,231\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"blogMultiProjectRename\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/04\/blogmultiprojectrename.png?fit=300%2C141&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/04\/blogmultiprojectrename.png?fit=492%2C231&amp;ssl=1\" class=\"alignnone size-full wp-image-627\" src=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/04\/blogmultiprojectrename.png?resize=492%2C231&#038;ssl=1\" alt=\"blogMultiProjectRename\" width=\"492\" height=\"231\" srcset=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/04\/blogmultiprojectrename.png?w=492&amp;ssl=1 492w, https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/04\/blogmultiprojectrename.png?resize=300%2C141&amp;ssl=1 300w, https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/04\/blogmultiprojectrename.png?resize=360%2C169&amp;ssl=1 360w\" sizes=\"(max-width: 492px) 100vw, 492px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>The same holds for reverse use of the commands. If\u00c2\u00a0you set the scope in Rename or Change Signature, the next Find References opens with the same scope.<\/p>\n<p>In short, Visual Assist assumes you&#8217;re working at the project or solution level, and holds the assumption until you say otherwise.<\/p>\n<p>And\u00c2\u00a0remember, you can always fine tune\u00c2\u00a0the\u00c2\u00a0scope of any Rename or\u00c2\u00a0Change Signature by selecting\/deselecting references, including entire project nodes, before a commit.<\/p>\n<p>Finally, if you are working in a Universal Solution, there are more\u00c2\u00a0nuances to the scope of Find References, Rename, and Change Signature. I&#8217;ll touch on those nuances in the next post.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There is a subtle connection among\u00c2\u00a0the Find References, Rename, and Change Signature commands of Visual Assist, and if you didn&#8217;t perceive the connection, you might believe something was awry\u00e2\u20ac\u201dwith your memory. The three commands\u00e2\u20ac\u201dFind References,&#8230;<\/p>\n","protected":false},"author":28485711,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"footnotes":""},"categories":[672],"tags":[],"class_list":["post-563","post","type-post","status-publish","format-standard","hentry","category-tips-and-tricks"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pfhqii-95","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/posts\/563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/users\/28485711"}],"replies":[{"embeddable":true,"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/comments?post=563"}],"version-history":[{"count":21,"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/posts\/563\/revisions"}],"predecessor-version":[{"id":632,"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/posts\/563\/revisions\/632"}],"wp:attachment":[{"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/media?parent=563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/categories?post=563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/tags?post=563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}