Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marzi333 committed Feb 6, 2024
1 parent 88450f8 commit f80b58c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ide-getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ yarn electron watch
### Running in Docker container
[Install docker](https://docs.docker.com/get-docker/).

To create the docker image `oniro-ide`:
To create `oniro-ide` docker image:

```
docker build -t oniro-ide .
```
To start the container `oniro-ide-container`:
To start `oniro-ide-container` container:

```
docker run -dp 3000:3000 --name oniro-ide-container oniro-ide
Expand Down
2 changes: 1 addition & 1 deletion ide-language-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ nav_order: 7
parent: Oniro IDE
---

As Oniro IDE is built using [Theia](https://theia-ide.org/docs/) which is heavily influenced by VS Code, the languages supported by the IDE are all of those supported by VS Code. Examples of such languages are:
Oniro IDE is built using [Theia](https://theia-ide.org/docs/), which is heavily influenced by VS Code. The languages supported by the IDE are all those supported by VS Code. Examples of such are:

|:-------------|:-------------|:-------------|
|[![Python](assets/images/python.png)**Python**](https://code.visualstudio.com/docs/languages/python)|[![Alt text](assets/images/c-c++.png)**C/C++**](https://code.visualstudio.com/docs/languages/cpp)|[![Alt text](assets/images/cs.png)**C#**](https://code.visualstudio.com/docs/languages/csharp)|
Expand Down
4 changes: 2 additions & 2 deletions ide-refactoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ parent: Oniro IDE
[Code Refactoring](https://refactoring.guru/refactoring) is an essential part of the software engineering life cycle. In this topic we will explain a few refactoring actions that are embedded into the IDE namely, `Rename Symbol`, `Extract Method`, and `Extract Variable`.

## Rename Symbol
This is mainly a refactoring tool that allows you to rename a symbol (variable, function, method, class, etc.) throughout your codebase consistently. This is particularly useful when you want to rename a symbol without manually updating each occurrence in different files.
This refactoring tool allows you to consistently rename symbols (variables, functions, methods, classes, etc.) throughout your codebase. This is particularly useful when you want to rename a symbol without manually updating each occurrence in different files.

![Alt text](assets/images/rename-symbol.png)

Expand Down Expand Up @@ -57,7 +57,7 @@ function calculateTotal(price, quantity) {
console.log("Total: $" + total.toFixed(2));
}
```
This time the total is calculated right away in long formula that includes the tax calculation. To make it more readable we want to extract the tax calculation in a separate variable. Hence, we select the `subtotal * taxRate` code fragment, click on the light bulb, choose `Extract to constant in enclosing scope` and give the constant a name eg. tax. The outcome should be as follows:
This time the total is calculated right away in long formula that includes the tax calculation. To make it more readable we want to extract the tax calculation in a separate variable. Hence, we select the `subtotal * taxRate` code fragment, click on the light bulb, choose `Extract to constant in enclosing scope` and give the constant a name e.g. tax. The outcome should be as follows:
```
function calculateTotal(price, quantity) {
let taxRate = 0.1;
Expand Down
2 changes: 1 addition & 1 deletion ide-user-interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ parent: Oniro IDE
---
# User Interface

At its heart, Oniro IDE is a code editor. Like many other code editors, Oniro IDE adopts a common user interface and layout of an explorer on the left, showing all of the files and folders you have access to, and an editor on the right, showing the content of the files you have opened.
At its heart, Oniro IDE is a code editor. Like many other code editors, Oniro IDE adopts a common user interface and layout of an explorer on the left, showing all of the files and folders you can access, and an editor on the right, showing the content of the files you have opened.

![](assets/images/Main%20Layout.png)

Expand Down

0 comments on commit f80b58c

Please sign in to comment.