This question already has answers here:
setting a default matlab path at startup
(2 answers)
How to set a folder as Current folder for every startup of Matlab?
(4 answers)
Closed 2 years ago.
I have tried these methods, but all of them didn't work:
1 pereference->general->initial working folder -> I change to my folder, but didn't work
2 setpath->add my folder on the top of folder,didn't work
3 userpath(myPath);
When I restart the icon in desktop, it always show this direction:
..\Polyspace\R2019b\bin
If both of them didn't work
open the Matlab icon's properties and change shortcut -> start in
Related
This question already has an answer here:
How to use excel built-in constant in VBS [duplicate]
(1 answer)
Closed 4 months ago.
I want to open a word document and jumpt to page 5 with a vbscript. In vba the following works:
Set word_app = CreateObject("Word.Application")
set word_doc = word_app.documents.open(doc_path)
word_app.displayalerts = false
word_app.visible = true
word_doc.activate
word_doc.select
word_app.activewindow.selection.Goto wdGoToPage, wdGoToAbsolute, 5
but in the vbscript i just jump to page 7 (last page of doc) instead.
Instead of using the GoToItem and GoToDirection constants names, just use their number values: learn.microsoft.com/en-us/office/vba/api/word.wdgotoitem
This question already has an answer here:
How do I get all the tabs in a Visual Studio Code window as an array of filenames?
(1 answer)
Closed 8 months ago.
I wanna get all the opened files with vscode api.
for example, my editor opened 001.cpp and 002.cpp, i wanna get a array like this, [0] = "001.cpp", [1] = "002.cpp".
I tried to find such api on https://code.visualstudio.com/api/references/vscode-api#TextEditor. But i only find TextEditor, and it only returned the focused file.
vscode.window.activeTextEditor.document.fileName
But i wanna an array including all the opened filename.
Since of April 2022 (1.67) you can now use Tab API to achieve that.
So, in your case you need this:
import * as vscode from 'vscode'
// Get labels of opened files in all groups
vscode.window.tabGroups.all.flatMap(({ tabs }) => tabs.map(tab => tab.label))
This question already has answers here:
How to turn off "matching" highlighting in VS Code?
(5 answers)
Closed 1 year ago.
In VS Code, when I select a word, all equal words in the text are automatically selected. Is it possible to disable this feature? Unfortunately, I don't know what it's called.
I found it!
It's this setting:
"editor.occurrencesHighlight": false
This question already has answers here:
Automatically hard wrap lines at column in VSCode
(11 answers)
Closed 3 years ago.
In Visual Studio Code, when you press ALT SHIFT F to format HTML document, VS Code would wrap a line that is too long into multiple lines.
I think VS Code let the line grow too long before wrapping. Is there a setting in VS Code to tell it to wrap after certain line length?
This question is NOT a duplicate of the hard wrap question. This is about wrapping during format document process.
Open user settings: File - Preferences - Settings
Then add/edit this item:
"html.format.wrapLineLength": 80
FYI the new settings are in effect after you save the changes.
If you are formatting HTML and are annoyed that VScode formats your long lines into multiple lines, go to:
File > Preferences > Settings
Search for:
HTML › Format: Wrap Line Length
and set it to 0
This question already has answers here:
Vertical line between matching curly braces for java in eclipse
(8 answers)
Closed 8 years ago.
i want to know how to get thie type of line eclipse what is shortcut key for this ?
Window > Preferences > General > Editors > Text Editors -- and you can customize your editor the way you want it to be.
Here it is the Indent Guide which causes the issue. Disable it and close all open Java editors, as it is not picked up dynamically.