How to open a Visual Studio Code Folder (Project) in Visual Studio IDE -
how open visual studio code folder in visual studio 2015?
if open "web site", tries treat node_modules directory part of project's normal javascript files , hits error when path exceed maximum path length.
but can't open other project type unless first create project of type , move vs code files folder.
- should trying open web site?
- or should create new project , copy files + folders it?
- is there advantage having project?
- if create project, makes difficult work using vs code?
- and if use project, project type should select?
currently there no way open folder directly visual studio.
why? because visual studio , visual studio code shared name, not the idea behind it. extend jenny o'reilly answer:
visual studio code
folder oriented
editorthis means vsc has same point-of-view project file explorer.
visual studio (not code)
solution oriented
integrated development environment (short ide)instead every project in visual studio needs
*.sln
solution-file root component. point visual studio looks @ project. example would, if copy file in project folder, wouldn't recognized visual studio. have add them firstsln
file, see them. allows developer combine multiple projects (*.csproj
,..) 1 single solution build.
this means idea behind these 2 editors different.
visual studio (not code) project-types web
there node.js tools visual studio
this provide node.js built-in project templates
visual studio 2015 comes typescript templates
workaround 1
a workaround blank solution in set visual studio code project.
workaround 2
another trick the answer question. can open project folder website project.
file -> open website -> file system , choose folder
update
as mentioned, there errors because visual studio tries build solutions. next few readers of response, work around (as john pankowicz writes in comment) is:
right-click web site in solution explorer -> property pages -> build -> uncheck "build web site part of solution"
update 2
(thanks jc1001 update)
the next version of visual studio (visual studio "15") support opening folder. mentioned in visual studio blog.
also in visual studio code, there prompt command opening folders. right can use in preview version:
devenv /command “file.openfolder folder_path”
in future able use:
devenv folder_path
opinion
personally wouldn't recommend visual studio (not code) html/website projects without server-side-development, because don't see features. intellisense suggests me bad html code (it's not ide's fault).
after web projects still text files. can control group projects version control. visual studio code provides integrated git support.
Comments
Post a Comment