![duplicate line visual studio 2018 duplicate line visual studio 2018](https://i2.wp.com/salesforcecodex.com/wp-content/uploads/2018/10/Dotnetcodex_TFS2.png)
- Duplicate line visual studio 2018 how to#
- Duplicate line visual studio 2018 full#
- Duplicate line visual studio 2018 code#
Now you should see line numbers in the text editor when you open a file.Īlso to know is, how do you select a whole line? Then simply check the ' Line numbers' box in the Display section. Now from the options dialog, expand the 'Text Editor' section and click 'All Languages'. Likewise, how do I view lines in Visual Studio? To enable, select 'Options…' from the 'Tools' menu. Then they continue with CTRL-X, CTRL-C, etc. With the keyboard, that would be: Hold SHIFT, hit HOME, hit END and the entire line is selected. Then they use either the mouse or the keyboard to expand the selection to the entire line. They place the cursor inside the line that they need to delete, cut or copy. Subsequently, one may also ask, how do I select a whole line in Visual Studio? This combination looks somewhat strange to work with, but it will get habituated very soon :) You can also use Ctrl + X to cut an entire line. This combination also works for uncommenting a complete line or lines.
Duplicate line visual studio 2018 code#
The code with the final configuration can be found here.If you want to select a line or lines you can use the combination of ctrl + E then U. Please leave a comment if there are different ways to accomplish this. Hopefully, this saved you some of the struggles I went through.
Duplicate line visual studio 2018 how to#
My key to learning how to get this going was on this GitHub issue. I think my Visual Studio experience made figuring this out harder than it should have been. While it is not obvious at all how to get multiple applications to run in a single instance of VS Code the process isn’t hard after you do it the first time. With the API running you can then select the web configuration and hit the green play button and you will have both of your applications running in debug mode. If you select the API one and hit the green play button it will start the API. On the debug you will notice that both of our launch configurations are listed. Now that all our configurations are good to go hop over to the debug section in VS Code. The final difference is in ASPNETCORE_URLS to make sure the URLs of the two applications are different. In the launchBrowser section, I set enabled to false since this is an API and I don’t need to launch the browser when the application starts. NET Core Launch (API) which will help us know which application we are launching later. I started with a copy of the original application and just modified a couple of things. In the build task, I removed the path to a specific csproj file and just used the workspace folder.
![duplicate line visual studio 2018 duplicate line visual studio 2018](https://i.ytimg.com/vi/7BuYhw3ZPQs/hqdefault.jpg)
With the solution file in place, I then opened the tasks.json file found in the. dotnet new sln -n ElectronTestĭotnet sln add src/ElectronTest/ElectronTest.csprojĭotnet sln add src/ContactsApi/ContactsApi.csproj
![duplicate line visual studio 2018 duplicate line visual studio 2018](https://i.stack.imgur.com/okK6B.png)
Using VS Code’s Terminal I ran the following commands to create a new solution and add my two projects to that solution. What I learned during this process was that while a solution file isn’t required once can be used to ensure multiple projects all get built.
Duplicate line visual studio 2018 full#
As I’m sure you are aware VS Code doesn’t need a solution file like full Visual Studio does. The first issue to tackle was getting both projects to build since they are technically independent.
![duplicate line visual studio 2018 duplicate line visual studio 2018](https://static.filehorse.com/screenshots/developer-tools/android-studio-screenshot-01.jpg)
Sample code that contains the two projects, but before any modifications covered in this post can be found here. I have used multiple projects with Visual Studio Code before, but never two distinct applications that I need to run at the same time. While expanding the sample used in the Electron.NET post to include an API I hit a snag with Visual Studio Code.