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
You can also toggle the Tab bar by updating the `showTabBar` option in the preferences file.
140
+
```json
141
+
"tabBar.options": {
142
+
"showTabBar": false
143
+
}
144
+
```
145
+
*Add this in your preferences file to hide the Tab bar.*
146
+
Set the value to `true` to enable it.
147
+
See [Editing Preferences](./editing-text#editing-preferences) if you need help in editing the preferences.
148
+
149
+
### Limiting the Number of Tabs
150
+
**Phoenix Code** allows you to control the maximum number of tabs visible in the Tab Bar at once.
151
+
By default, the value is set to `-1`, which means all open tabs are displayed.
152
+
153
+
For example, if you want to show a maximum of **3 tabs** in the Tab Bar, you can add the following to your preferences file:
154
+
155
+
```json
156
+
"tabBar.options": {
157
+
"numberOfTabs": 3,
158
+
"showTabBar": true
159
+
}
160
+
```
161
+
You can set `numberOfTabs` to any positive number to define the maximum tab limit.
162
+
If you set it to `0`, the Tab Bar will be hidden entirely.
163
+
Any negative value (such as `-1`) displays all open tabs without restriction.
164
+
> The active tab is always visible, except when the `numberOfTabs` value is set to `0`.
165
+
166
+
167
+
### Tab Bar Context Menu
168
+
When you right-click a tab, a context menu appears which has multiple options so that you can work with tabs easily.
169
+
170
+

171
+
172
+
### Tab Bar Context Menu
173
+
174
+
When you right-click a tab, a context menu appears with multiple options that make it easy to manage open files.
175
+
176
+

177
+
178
+
#### Tab Bar Context Menu Options
179
+
180
+
***Close Tab** — Closes the tab that was right-clicked.
181
+
*For example, in the image, the `script.js` tab will be closed.*
182
+
183
+
***Close Tabs to the Left** — Closes all tabs to the left of the selected one (excluding the right-clicked tab).
184
+
*In the image, the `styles.css` tab will be closed.*
185
+
186
+
***Close Tabs to the Right** — Closes all tabs to the right of the selected one (excluding the right-clicked tab).
187
+
*In the image, the `index.html` tab will be closed.*
188
+
189
+
***Close Saved Tabs** — Closes all tabs with saved content. *Tabs for files that have unsaved changes remain open.*
190
+
191
+
***Close All Tabs** — Closes every tab currently open in the Tab Bar.
192
+
193
+
***Rename** — Allows you to rename the file linked to the selected tab. *When you choose this option, Phoenix Code opens the File Tree (if it is closed) and highlights the file so you can rename it directly.*
194
+
195
+
***Delete** — Deletes the file from the project and removes its tab from the Tab Bar.
196
+
197
+
***Show in File Tree** – Highlights the selected file in the File Tree so you can locate it easily.
198
+
199
+
***Reopen Closed File** — Reopens the most recently closed file or tab.
200
+
201
+
> These options provide quick access to common file operations directly from the Tab Bar.
202
+
203
+
#### Git - Tab Bar
204
+
**Phoenix Code** integrates with Git. The Tab Bar displays file status indicators, showing which files are untracked or modified.
205
+
206
+

207
+
208
+
- A **green marker** indicates an **untracked** file.
209
+
- An **orange marker** indicates a **modified** file.
210
+
211
+
> These indicators appear only when your project is a Git repository.
0 commit comments