How to enable intellisense in Visual Studio 2017 for Unity [duplicate] - c#

This question already has answers here:
Unity Scripts edited in Visual studio don't provide autocomplete
(35 answers)
Closed 5 years ago.
I've just gotten started with programming in Unity. I installed Visual Studio Code 2017 recently on Zorin 12. It's a nice interface, but there's no auto-completion! I realize that Ctrl+Space pops up some suggestions, but there are two problems that I'd like resolved with this:
The suggestions don't pop up automatically
The suggestions are based on redundancies in code I've already typed, not suggestions based on unexplored capabilities of Unity. If I'm working with a Transform object, for example, I want it to pop up all of the possible variables I could use, not just the one I used earlier.
Two errors I get can be seen at https://i.imgur.com/AwHl4ef.png
Thank you for your consideration.

For Windows or macOS:
Download/Install the Visual Studio IDE (with Unity Tools)
When installing, make sure you include installation of
Game development with Unity
Then using Unity (you can double click one of your C# files), open a new C# project and the Visual Studio IDE should open with your new project structure.
From there, you should be able to see what you are looking for.
For example:
For Linux (suggestion):
Try Monodevelop - Additional Information, it provides code completion/hints.

Related

Auto-complete in Visual Studio for Unity [duplicate]

This question already has answers here:
Unity Scripts edited in Visual studio don't provide autocomplete
(35 answers)
Closed 4 years ago.
I'm coding C# in Visual Studio for my Unity project.
When I add a new script file to my project, I can open it in VS.
However, VS doesn't make any auto-complete specificly for unity, as I saw in a unity tutorial.
How can I get this VS auto-complete?
Thank you!
You have to make sure you have Visual Studio Unity3d tools. You can download them for free here Also your class also must inherit MonoBehaviour class in order to show you these auto-complete features. Enjoy coding :)

Make Mac OS X games with a windows computer. c#, Visual studio [duplicate]

This question already has answers here:
How to build a dmg Mac OS X file (on a non-Mac platform)?
(7 answers)
Closed 5 years ago.
Using a windows computer, is it possible to make a game for mac? With visual studio you can use Xamarin to make ios games, so is a there a way to do the same for mac without having to use a virtual machine?
Using purely visual studio... I don't know!
I know that it is possible to make cross platform games using an engine like unity:
https://unity3d.com/unity/features/multiplatform
Which uses C#, and integrates with visual studio.
There are probably other ways too!
For example, I think there is a way to make web apps with C# - which might be integrated with visual studio... but I haven't played around with it, or know what it's capabilities are.
https://code.msdn.microsoft.com/ASPNET-5-Create-Web-b8a44cce
Web apps should be cross compatible via browsers, I think... again, haven't really played around with it.

Having trouble with referencing c# project from web forms project [duplicate]

This question already has answers here:
How to reference a C# Class Library project in Visual Studio 2010?
(2 answers)
Closed 8 years ago.
I am trying to write a page that displays a flow Diagram to the user. I downloaded the Tree Chart Generator from: http://www.codeproject.com/Articles/20508/Tree-Chart-Generator and added the Tree Generator project to my solution. However, when I try to reference TreeGenerator from my code behind, it is not recognized. I am sorry if this is a simplistic question, I am pretty new to .NET development.
Go to your web site project in the Solution Explorer, right click, click Add Reference, and select the project you want to reference. You may need to change to a "Solution" tab depending on your version of Visual Studio. I'm assuming Visual Studio because you didn't provide that detail in your question.

What is the difference between c# and visual c#? [duplicate]

This question already has answers here:
C# and Visual C#?
(7 answers)
Closed 8 years ago.
I am an intermediate Java programmer and want to shift to C#. I am totally new to this Microsoft language. In books, they are using both terms Visual C# and C#. Can anyone please tell the real difference between the terms?
Visual C# is an implementation of the C# language by Microsoft.
Visual C# is just C#. You can build any kind of .NET application using C# and Visual Studio makes it easier test and debug your application.
for example using Visual Studio brings you lots of capabilities :
Code Editor
Debugger
Designer
Windows Forms Designer
WPF Designer
,...
for more information about Visual Studio read this page:
http://en.wikipedia.org/wiki/Microsoft_Visual_Studio
Update: Visual C# is the marketing name that Microsoft uses for C#, So nobody calls it Visual C#.
C# would refer to the language itself, which can be compiled without the Visual Studio environment using the .NET SDK & the supplied csc.exe (c# compiler - like javac) or the Mono environment.
Visual C# likely refers to the C# language AND the Visual Studio IDE / Toolchain (SQL/Reports etc.).
There is no real difference between C# and Visual C#. The terms are often used interchangeably.
Visual C# kind of implies using the Visual Studio for C# development. But there is only C#.
See here for learning resources.

Visual Studio 2010 C# one-liners compiler [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Anders Hejlsberg's C# 4.0 REPL
Is there a native window/extension in VS2010 where you can write one-liners and see the result( like the 'Immediate Window', witch, as far as I know, is only usable in Debug mode).
I'm not interested in external tools like Linq Pad or SnippetCompiler
With Roslyn, Visual Studio will get a built in interactive window:
http://blog.filipekberg.se/2011/11/14/using-the-c-interactive-window-that-comes-with-roslyn/
Unfortunately, it is still only at CTP status.
Maybe the IronPython interactive console (inside visual studio) could do the work. But it's not a straight answer :/
http://ironpython.net/

Categories