visual-studio-2013

See the type of a var in Visual Studio

♀尐吖头ヾ 提交于 2020-12-04 19:48:54
问题 Is there a way to see the type of a var within the Visual Studio 2013 code editor? When I have a crazy linq query it would be nice to see what the resulting type will be. I don't want to replace the var keyword with the actual type, I just want to see what it is. 回答1: You can get it by Hovering on particular var keyword. For example see in below image the tooltip shows the details. 回答2: There is also a keyboard shortcut that will show you. Put the cursor over var and type: ctrl + k , i 回答3:

Visual Studio Change from general development settings

十年热恋 提交于 2020-08-21 04:45:46
问题 In Visual Studio 2010, is there a way to change from General Development Settings to C# Development Settings? I forgot to select it when I initially installed it. 回答1: click Tools click Import and Export Settings click Import Selected Environment Settings save current settings click C# under the default setting folder 回答2: Tools Import and Export Settings > A dialogue box will open. Choose Reset all settings Click Next > An import and export settings wizard will open Choose No, just reset

Using google protobuf with libraries in cmake on Windows, Visual Studio 2013

一个人想着一个人 提交于 2020-08-08 06:38:50
问题 I have a CMake project with several sub-directories and library modules that eventually get built into client and server libraries, and those libraries are used from executable to test them. I am trying to use Google's protobuf library inside one of those libraries. I am creating my sub-library as follows: include_directories( . ../rendering_backend ../shared ${MY_THIRDPARTY_DIR}/protobuf/include ) add_library(Client STATIC client.cpp client.hpp ../common.hpp ../shared/protobufs/my_bufs.pb.cc