visual-studio-2012

How do I change the line spacing in Visual Studio 2012?

别说谁变了你拦得住时间么 提交于 2020-01-22 06:43:26
问题 Is it possible to change the spacing between lines in the Visual Studio 2012 code editing area? After having worked with IntelliJ IDEA for a while, I got accustomed to a slightly larger line spacing (1.2), and I want to achieve the same effect in VS12. For comparison, the top one is IDEA with 12 pixels spacing between lines, the bottom one is VS12 with 10 pixels spacing: I find the IDEA version much easier to read, even if it's just 2px difference. Does anyone know? 回答1: I've found a

Data-Driven Unit Test from Excel Spreadsheet

坚强是说给别人听的谎言 提交于 2020-01-22 00:24:37
问题 How do I set up a data-driven unit test method in VS2012 that reads data from an Excel .xlsx spreadsheet? I have tried Googling the solution but the results are either referring to an older version of Visual Studio or are not for .xlsx files. So far I have a test class, test method, and the data source file, TestData.xlsx which is copied to the output directory at build time. 回答1: Figured it out on my own. Give your test method the following attributes: [DeploymentItem("TestData.xlsx")]

How to concat variable integer in control name in vb.net

隐身守侯 提交于 2020-01-21 10:25:20
问题 Now I have a database and pull out that data and display it to form,i have a sequence of groupbox and radiobuttons, in each groupbox (groupbox1,groupbox2,etc...) there are 2 radio buttons namely rdbtn1Yes and rdbtn1No (then it increment +1 in next Groupbox). now i use for loop to go through every groupboxes and radio buttons. And this is my code: Dim sqlda As New SqlDataAdapter("SELECT * FROM table1 WHERE column1= '" & lblWONo.Text & "'", Constr) Dim sqlds As New DataSet sqlds.Clear() sqlda

Missing documentation for system-assemblies in VS2012

别说谁变了你拦得住时间么 提交于 2020-01-21 09:29:20
问题 for some time now, on my 2nd development machine VS2012 is not showing any (XML-)documentation for system/GAC/built-in assemblies. E.g., when I jump to a built-in Type that resides in mscorlib.dll, there is no documentation (see screenshot). If I include my own assemblies (that are accompanied by their respective XMLs) I can see the full doc. I tried resetting Intellisense but that didn't help. This is how it looks: (The pluses over each member that would expand the comment are totally

Missing documentation for system-assemblies in VS2012

ε祈祈猫儿з 提交于 2020-01-21 09:28:29
问题 for some time now, on my 2nd development machine VS2012 is not showing any (XML-)documentation for system/GAC/built-in assemblies. E.g., when I jump to a built-in Type that resides in mscorlib.dll, there is no documentation (see screenshot). If I include my own assemblies (that are accompanied by their respective XMLs) I can see the full doc. I tried resetting Intellisense but that didn't help. This is how it looks: (The pluses over each member that would expand the comment are totally

Viewing dynamically alloocated null-terminated strings with Visual Studio's debugger

回眸只為那壹抹淺笑 提交于 2020-01-21 08:16:46
问题 Is there any way to change the default behavior of Visual Studio's debugger such that when hovering over a null-terminated, dynamically allocated character array (C++), it will display the full content of the string, rather than the first character only? I should mention that I am using Visual Studio 2010. If there is a way to achieve this in VS2012 only though, I would be interested to know that as well! 回答1: There's a useful link for visual studio, C++ Debugger Tips: To interpret a pointer

How to disable auto done status for task in checkin

為{幸葍}努か 提交于 2020-01-20 12:56:59
问题 We just moved to use TFS 2012 which seems to be a huge upgrade for 2008 in usability with VS2012. However, there is a very annoying feature with "My Work" feature if you connect your work with a certain task. After you have connected the task with your work item, any checkin to any branch will mark the task to "done" status. How can I disable this? I'd like to have the development branch so that I can make small commits during development but with this feature I cannot connect the task with

How to disable auto done status for task in checkin

独自空忆成欢 提交于 2020-01-20 12:55:49
问题 We just moved to use TFS 2012 which seems to be a huge upgrade for 2008 in usability with VS2012. However, there is a very annoying feature with "My Work" feature if you connect your work with a certain task. After you have connected the task with your work item, any checkin to any branch will mark the task to "done" status. How can I disable this? I'd like to have the development branch so that I can make small commits during development but with this feature I cannot connect the task with

How to disable auto done status for task in checkin

北慕城南 提交于 2020-01-20 12:55:26
问题 We just moved to use TFS 2012 which seems to be a huge upgrade for 2008 in usability with VS2012. However, there is a very annoying feature with "My Work" feature if you connect your work with a certain task. After you have connected the task with your work item, any checkin to any branch will mark the task to "done" status. How can I disable this? I'd like to have the development branch so that I can make small commits during development but with this feature I cannot connect the task with

Why does data driven unit test fail in vs2012 when it worked fine in vs2010?

二次信任 提交于 2020-01-20 06:11:28
问题 I have some data driven unit tests that were working just fine in Visual Studio 2010. These tests were implemented using the following pattern. [TestMethod()] [DeploymentItem("path_to_data_dir_relative_to_solution\\my_data.xml")] [DataSource("Microsoft.VisualStudio.TestTools.DataSource.XML", "|DataDirectory|\\my_data.xml", "Token", DataAccessMethod.Sequential)] public void MyTestMethod() { // Arrange const string EXPECTED_PARAM_NAME = "table"; string data = TestContext.DataRow["Data"]