You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classVeryAdvancedScientificCalculator{/** * Returns the sum of two numbers. */publicadd(x: number,y: number): number{returnx+y}/** * Returns the product of two numbers. */publicmultiply(x: number,y: number): number{returnx*y}}
and you do ctrl + shift + o and select "multiply", the cursor is placed at the beginning of the multiply identifier.
With a similar code in solidity, on the other hand:
contractVeryAdvancedScientificCalculator {
/// Returns the sum of two numbers.function add(uintx, uinty) publicreturns (uint) {
return x + y;
}
/// Returns the product of two numbersfunction multiply(uintx, uinty) publicreturns (uint) {
return x * y;
}
}
if you go to the multiply symbol, the cursor is placed in the empty line before the natspec.
The text was updated successfully, but these errors were encountered:
In typescript, if you have this:
and you do
ctrl + shift + o
and select "multiply", the cursor is placed at the beginning of themultiply
identifier.With a similar code in solidity, on the other hand:
if you go to the
multiply
symbol, the cursor is placed in the empty line before the natspec.The text was updated successfully, but these errors were encountered: