in the " xamarin+prism Development in detail three: Visual Studio RC First Experience "shared the general picture of Visual Studio 2017RC, and found that you were interested in the new Visual Studio. So the time to delve into the visual Studio 2017RC is not and Microsoft Connect ()://2016 said the same God.
A total of 12 points, patience Point slowly look!
1, added a lot of "code style" settings items.
With reasonable settings, everyone can write beautiful code, and the team project can also achieve a unified code style.
- This preference: You can set "fields, properties, methods, events" If this is required, the Error List will list "Suggestions, warnings, errors" and other information.
Predefined type preferences: Int32 or similar settings such as Int.
- var preferences: settings such as var definition or type definition when built-in type.
- The object property is initialized: c#7.0 features, object declarations and property settings are also easy to implement.
- Method Internal initialization variable:c#7.0 attribute, so that it does not have to be declared outside, a code implementation.
- null check :?? And? How convenient it must be to set the level to suggestion.
Various levels of presentation
Suggestion Way
Error mode
Warring way
Error List Display condition
2, add the naming function, the above settings can be customized.
The default setting is as follows:
Brain Repair:
Pascal case name (Pascal orthography): The name of the beginning of uppercase. such as: Title,getname, commonly used for attribute names, public method names and so on.
Camel case Name: the name of the lowercase start. such as: Initial,savetodb, etc., generally used for internal variable name, private method name and so on.
You can set a lot of things:
The following is my custom, the Pascal spelling of the awkward translation into the English Pascal Name.
3,editorconfig.
The previous settings are for Visual Studio itself, and Editorconfig is available for project units. At the same time, a editorconfig file can be displayed in the other code editor. For example, Visual Studio Code,xcode,vim,atom can be used.
Visual Studio's Editorconfig plugin open source project address: Https://github.com/editorconfig/editorconfig-visualstudio#readme
Editorconfig for the following versions of Visual Studio 2017RC: Https://marketplace.visualstudio.com/items?itemName=EditorConfigTeam.EditorConfig
Try hackers, such as indent settings
Add a. editorconfig file below the item, and the indent is set to tab form.
Enter the code to see the effect: ( Remember to close the file and then open only effect )
These settings are mainly supported at this time:
- Indent_style
- Indent_size
- Tab_width
- End_of_line
- Insert_final_newline
- Trim_trailing_whitespace
- Root (only used by Editorconfig Core)
settings to be added later: https://github.com/dotnet/roslyn/pull/15029
4, the Code retrieval function is optimized.
Row Search ": 10"
File Search "f app"
The member function retrieves "M T"
Type retrieve "T T"
Symbol Search "# _"
Built-in variable retrieval is not supported
5, Find all reference feature optimizations.
It's all color-coded, "code Preview", "Group By", "Keep results" feature.
Code Preview
Keep the results: the previous search is still here, this is good!
6, structure reference dashed line.
Used to find the plug-in implementation, is now built-in. Not only CS files have, but also XAML files have.
7, Long Text column press the ENTER key to automatically add "+".
8, "Attach to process" can be retrieved.
9, the abnormal display is clearer, the internal exception is displayed together, the exception condition can also be customized.
And that place in one line of code can be shown as null.
10, the extension function has been bound to the account, no longer need to look for records everywhere.
11, you can open the folder.
The solution can also be displayed as a folder, so editing the. csproj file is convenient.
12. Load the lightweight solution.
Load only when project is open
A lot of things, and the functional optimization of the monomer test is skipped. See that there are so many features of the visual Studio2017 do not know whether you are enchanted or not ...
Delve into the new features of Visual Studio RC