'Visual Studio 2022 - hide/disable debugging terminal windows in NET 6 + Angular project
Is there any option to move all debug consoles in Visual Studio 2022 to Output section on the bottom? There is one console for backend (API) and one for frontend (npm start). This is very annoying. Besides, the same output is shown in both backend console and VS Output section (except angular npm start). What's the point of that?
I did setup the Tools->Options->Debugging->Automatically close the console, but the npm with Angular is not closing. I think there should be an option to run both "consoles" in VS Output.
Solution 1:[1]
You can create a method and pass an argument on that.
Example :
const getFullName = (employee) => {
return {
'employeeName': `Hello welcome ${employee.firstname}, ${employee.lastname}`
}
};
const employee = {
firstname: "asif",
lastname: "vora"
};
const { employeeName } = getFullName(employee);
console.log(employeeName);
Solution 2:[2]
constant.js:
export const constants= { employeeName: 'Hello welcome'}
React Component:
import constants from './constants.js'
const employee={firstname:props.firstname,lastname: props.lasname}
<div>{`${constants.employeeName} ${employee.firstname}, ${employee.firstname}`}</div>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Asif vora |
| Solution 2 | HDM91 |
