Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by Imry · Mar 08, 2018 at 05:59 PM · visual studiovoidautocomplete

visual studio 2017 auto complete is so irritating

I used to use monodevelope instead of visual studio 2017, and I recently started to use visual studio. There was many many upgrades since I changed, but there's a big problem that I cannot figure out the solution.

The VS auto complete system always makes me angry whenever I try to make a new function. For Example: void Move() {

 }

this what I normaly write but in Visual Studio it just automaticaly change it to:

 privat void OnAnimatorMove()
 {
 
 }

Now, I know that adding 'private' doesn't really matter, but it is really irritating that it alway change my new function name. Is there any great solution to this problem?

Oh forgot important thing to say: I would really like it if the solution doesn't involve turning the entire autocomplete function off. I LIKE autocomplete. It is problem only when I write a new function.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by Bunny83 · Mar 08, 2018 at 06:10 PM

Well you have generally two solutions you can pick from:

  • If you like to get autocompletion for Unity messages you have to just cancel autocompletion before you write your opening bracket after your method name. To cancel autocompletion you just have to press "ESC"

  • If you don't need / want the autocompletion for Unity messages you can just disable them in the settings of the Unity Tools plugin in Visual Studio:


Auto completion setting


Note that disabling this option does not disable autocompletion in general. Just the additional messages. Since the Unity messages are not part of a base class or anything they implemented this autocomplete feature in the Unity Tools for Visual Studio.


vs-unitycodecompletion.png (28.5 kB)
Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Deathdefy · Mar 08, 2018 at 06:14 PM 0
Share

Touche good sir.

avatar image Imry · Mar 08, 2018 at 06:19 PM 0
Share

God Thanks! Thanks for such a neat solution and its explanation.

avatar image
1

Answer by Deathdefy · Mar 08, 2018 at 06:14 PM

Its intended functionality based on the settings you have. You are auto completing to Unitys messages. You can turn that off specifically though.

In VS go to Tools -> Options -> Tools for Unity -> General. Change "Unity Messages code completion" to false if you want the functionality you are talking about.

Image provided.alt text

Edit : After changing this, restart visual studio.


capture.png (27.5 kB)
Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Imry · Mar 08, 2018 at 06:21 PM 0
Share

Thanks a LOT. Your detailed explanation and the screen shot helped me a lot. Especially the last tip to restart VS was so generous.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

76 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Configure Visual Studio auto complete 1 Answer

After 2019.1.3 upgrade scripts aren't working properly the snippets not showing intelisense parameter info 0 Answers

Intellisense for Visual Studio Code keeps disappearing 1 Answer

VSCode Won't Auto-Complete Editor Scripts 1 Answer

code in void not executing 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges