visual-studio-2012

How to update TFS workspace after computer name changes?

笑着哭i 提交于 2019-12-20 08:28:00
问题 I renamed my computer name, and now my TFS workspace is broken in Visual Studio 2012. When I type: tf workspaces /computer:ABOTONJIC-PC /owner:* /format:detailed Workspace : ABOTONJIC-PC Owner : wrongowner@test.com Computer : ABOTONJIC-PC Comment : Collection : netuse.visualstudio.com\DefaultCollection Permissions: Private Location : Local File Time : Current But I need to have : Owner : realowner@test.com Computer : NEW-PC Then I try: tf workspaces /updateComputerName:ABOTONJIC-PC

Where can I locate themes for VS2012

被刻印的时光 ゝ 提交于 2019-12-20 08:18:48
问题 Okay, the lack of color on VS2012 is gross. Is there someplace I can get a theme pack or something for it so that it actually looks reasonable? I really liked the look of VS2010. However, the new one reminds me way too much of 1984. While we are at it, is there anyway to have it stop shouting at me? ALL CAPS menus are pretty hard to read. [ note: caps was resolved, thanks Konamiman] 回答1: New Theme editor Specifically for 2012 : http://visualstudiogallery.msdn.microsoft.com/366ad100-0003-4c9a

Visual Studio Expand/Collapse keyboard shortcuts [duplicate]

和自甴很熟 提交于 2019-12-20 08:18:05
问题 This question already has answers here : Command to collapse all sections of code? (20 answers) Closed 3 years ago . In Visual Studio, if I have a code file open, I can press CTRL + M or CTRL + M + O to collapse all code blocks, regions, namespaces, etc. How to I do the opposite and expand everything? I have Googled this, but cannot seem to find a shortcut that works! 回答1: Collapse to definitions CTRL + M , O Expand all outlining CTRL + M , X Expand or collapse everything CTRL + M , L This

Visual Studio Expand/Collapse keyboard shortcuts [duplicate]

喜你入骨 提交于 2019-12-20 08:18:05
问题 This question already has answers here : Command to collapse all sections of code? (20 answers) Closed 3 years ago . In Visual Studio, if I have a code file open, I can press CTRL + M or CTRL + M + O to collapse all code blocks, regions, namespaces, etc. How to I do the opposite and expand everything? I have Googled this, but cannot seem to find a shortcut that works! 回答1: Collapse to definitions CTRL + M , O Expand all outlining CTRL + M , X Expand or collapse everything CTRL + M , L This

Is it possible to change icons in Visual Studio 2012?

可紊 提交于 2019-12-20 07:58:59
问题 Is there any way to replace VS2012 solution explorer's icons with VS2010 ones? At least 'folder' icon :( 回答1: Short Answer: Hack the old icons into 2012. Visual Studio Icon Patcher - http://vsip.codeplex.com Long Answer: Doing this with a plugin, for now, is out of the question. I've been unable to find any built-in way to achieve this and the switch to WPF makes it even harder to hack around. This app simply extracts the image resources from the unmanaged DLLs in Visual Studio 2010 and

How to properly manage database deployment with SSDT and Visual Studio 2012 Database Projects?

谁都会走 提交于 2019-12-20 07:58:21
问题 I'm in the research phase trying to adopt 2012 Database Projects on an existing small project. I'm a C# developer, not a DBA, so I'm not particularly fluent with best practices. I've been searching google and stackoverflow for a few hours now but I still don't know how to handle some key deployment scenarios properly. 1) Over the course of several development cycles, how do I manage multiple versions of my database? If I have a client on v3 of my database and I want to upgrade them to v8, how

Having problems with accessing struct

微笑、不失礼 提交于 2019-12-20 07:32:55
问题 I think i may be losing it but can anyone double check my sanity? This is the only code i wrote in a new file to see my project file is not messed up. Error: This declaration has no storage class or type specifier Error: Expected a ";" 回答1: On a global level you can only have declarations and definitions, not statements (like g.a = 1; is) or expressions. 回答2: Also why not use by static initialization? Game g = { 1 }; 回答3: Have some function to have the executable statement, for example, Game

getchar() skips every other char in C

痴心易碎 提交于 2019-12-20 07:28:16
问题 I have been having problems fully using getchar() for a while now in C. And in this case I am trying to read a line and put the char's of the line into an array. However upon assigning the getchar() to the array it skips some characters. For example the input "It skips every other" the output is...I\n \n k\n p\n \n v\n r\n \n t\n e\n. (the \n is just to represent the new line.) int N = 0; char message[80] = {}; do { message[N] = getchar(); N++; printf("%c\n", message[N-1]); } while(getchar()

getchar() skips every other char in C

故事扮演 提交于 2019-12-20 07:28:03
问题 I have been having problems fully using getchar() for a while now in C. And in this case I am trying to read a line and put the char's of the line into an array. However upon assigning the getchar() to the array it skips some characters. For example the input "It skips every other" the output is...I\n \n k\n p\n \n v\n r\n \n t\n e\n. (the \n is just to represent the new line.) int N = 0; char message[80] = {}; do { message[N] = getchar(); N++; printf("%c\n", message[N-1]); } while(getchar()

Insert issue with arrays

两盒软妹~` 提交于 2019-12-20 07:07:44
问题 Iam new to vc++.Iam trying to write program using map::insert function in below code int _tmain(int argc, _TCHAR* argv[]){ int arr[3] ={0,1,2}; map <int, int[3]> mymap; std::map<int,int[3]>::iterator it = mymap.begin(); mymap.insert(it,std::make_pair(1,arr)); } Iam getting error C2664: 'std::pair<_Ty1,_Ty2> std::_Tree<_Traits>::insert(std::pair &&)' : cannot convert parameter 2 from 'std::pair<_Ty1,_Ty2>' to 'std::pair<_Ty1,_Ty2> &&' can you please give solution how to solve this error Thanks