请选择 进入手机版 | 继续访问电脑版

技术控

    今日:238| 主题:57549
收藏本版 (1)
最新软件应用技术尽在掌握

[其他] C++ IntelliSense Improvements – Predictive IntelliSense & Filtering

[复制链接]
橘虞 投递于 2016-10-6 10:21:03
273 1
IntelliSense is one of the most commonly used features in Visual Studio. With it, developers can write code more efficiently and learn more about their codebase at the same time. In a sense, IntelliSense is both a guide and a productivity feature. We understand the importance of having a powerful IntelliSense system which displays highly relevant results right when they are needed and which minimizes the time you need to spend thinking or typing as a developer. We have been collecting your feedback for C++ IntelliSense and are happy to announce two major improvements in Visual Studio “15” Preview 5 : Predictive IntelliSense and IntelliSense Filtering .
   Predictive IntelliSenseuses contextual awareness to limit the number of results displayed in the IntelliSense dropdown list. Many of you have pointed out that the dropdown list can get quite long, necessitating a lot of scrolling. With Predictive IntelliSense, we employ type matching to give you results that match the expected type that you will usually need. In the simplest case, if you type int x = and invoke the IntelliSense dropdown, rather than seeing a giant list of all possible results, you will see only integers or functions returning integers. Predictive IntelliSense also excludes several different kinds of results in other cases where Visual Studio expects those kinds aren’t relevant. The result is a far more concise list. This feature is currently experimental and is turned off by default, but you can turn it on by going to Tools > Options > Text Editor > C/C++ > Experimental > Enable Predictive IntelliSense .
   

C++ IntelliSense Improvements – Predictive IntelliSense & Filtering

C++ IntelliSense Improvements – Predictive IntelliSense & Filtering-1-技术控-understand,collecting,developer,displays,features

   Of course, we understand that sometimes, Predictive IntelliSense might not work out and you might need to go back to the longer list. We always had a hidden keyboard shortcut built into Visual C++ which expands the list of IntelliSense results. By default, that shortcut is Ctrl + J . Ctrl + J was used in the past to do things like removing the accessibility filter, which hid private and protected members in Member List results. Now, if Predictive IntelliSense is on, invoking Ctrl + J removes the Predictive filter, going back to the list you are accustomed to from earlier releases. Pressing Ctrl + J again removes the accessibility filter from Member List results where relevant. We have also added a button ([+]) under the IntelliSense dropdown list which does the same thing as Ctrl + J. Hovering over the button gives you some useful tooltip information about what is being shown.
   

C++ IntelliSense Improvements – Predictive IntelliSense & Filtering

C++ IntelliSense Improvements – Predictive IntelliSense & Filtering-2-技术控-understand,collecting,developer,displays,features

   If you check the screenshot above, you will notice there are even more buttons under the dropdown list however. That is because we also added a set of IntelliSense Filters for different kinds of results which you can toggle based on your needs to narrow down the list:
  
       
  • Variables and Constants   
  • Functions   
  • Types   
  • Macros   
  • Enums   
  • Namespaces  
  We only list the filter buttons relevant to your current IntelliSense session so you often won’t see all the buttons at once.
  Send us your feedback!

   Please try Preview 5 and these new IntelliSense features. We’re always interested in hearing what you think so we can improve Visual Studio. For C++ IntelliSense suggestions/ideas, please feel free to email me directly [email protected] or post/upvote ideas on UserVoice. You can submit bug reports via Connect as well, and don’t forget, you can always Send a Smile or a Frown right from Visual Studio if that works better for you.



上一篇:iTunes Remote (WebSocket + Applescript + React)
下一篇:Building Your Own React Clone in Five Easy Steps
山蝶 投递于 2016-11-17 23:05:48
顶起~~~~
回复 支持 反对

使用道具 举报

我要投稿

推荐阅读


回页顶回复上一篇下一篇回列表
手机版/CoLaBug.com ( 粤ICP备05003221号 | 文网文[2010]257号 | 粤公网安备 44010402000842号 )

© 2001-2017 Comsenz Inc.

返回顶部 返回列表